Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 620 Bytes

File metadata and controls

18 lines (10 loc) · 620 Bytes

ReadAcc

Retrieves accelerometer game data

Syntax: ReadAcc(data[3],past=5)

  • data 3 cell size vector for storing acc data
  • past how deep in acc buffer reach into history <0...50>

Notes: When there is any motion like tap etc., it is much better to take data before this even happened, because they reflect the situation when the user wanted to do an action. Recommended and standard value is 4 - that means data is 32 ms old.

Example:

  • ReadAcc(data), reads 32 ms old acceleration data
  • ReadAcc(data,0), reads newest acceleration data

See also: GetCursor