|
MoSync 3.0.1
|
Functions | |
| int | maSensorStart (int sensor, int interval) |
| Enables a sensor and starts sending events if the sensor is available. If the sensor is already enabled this call will have no effect. | |
| int | maSensorStop (int sensor) |
| Disables a sensor so that it doesn't send any further events. | |
| int maSensorStart | ( | int | sensor, |
| int | interval | ||
| ) |
Enables a sensor and starts sending events if the sensor is available. If the sensor is already enabled this call will have no effect.
| sensor | The sensor which should be enabled. One of the SENSOR_TYPE constants. |
| interval | Time interval in which a sensor update shall be triggered. Can be one of the SENSOR_RATE constants or a time interval in milliseconds. |
References maIOCtl().
| int maSensorStop | ( | int | sensor | ) |
Disables a sensor so that it doesn't send any further events.
| sensor | The sensor which should be disabled. One of the SENSOR_TYPE constants. |
References maIOCtl().