Blender Git Loki

Git Commits -> Revision 7b4c1dd

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)

6 Modified Paths:

/intern/ghost/CMakeLists.txt (+1, -0) (Diff)
/intern/ghost/GHOST_C-api.h (+24, -0) (Diff)
/intern/ghost/GHOST_ISystem.h (+20, -0) (Diff)
/intern/ghost/GHOST_Types.h (+16, -0) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+17, -0) (Diff)
/intern/ghost/intern/GHOST_System.cpp (+10, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021