Blender Git Commit Log
Git Commits -> Revision 7b4c1dd
Revision 7b4c1dd by Alexander Kuznetsov (soc-2012-swiss_cheese) July 26, 2012, 21:49 (GMT) |
Adding Initial sensor API in GHOST Test sensor availibility: getSensorsAvailability() Enable or disable sensors: setSensorsState() Sensors are disabled by default You need to supply type of sensor: 1 - Accelerometer 2 - Gyroscope 3 - Magnetic Sensor (Please don't switch order, just append new sensors. It is hardcoded in Android) Data is stored as a vectror in GHOST_TEventSensorData with dimension of 3 for Accelerometer, Gyroscope and Magnetic Sensor Other sensors can have differnt dimensions |
Commit Details:
Full Hash: 7b4c1dd59f83613b3e2cc55138964703ac99338c
SVN Revision: 49266
Parent Commit: ca8dd5d
Lines Changed: +179, -0
1 Added Path:
/intern/ghost/intern/GHOST_EventSensor.h (+91, -0) (View)