ACCELEROMETER_MSGCALLBACK (Compact 2013)
3/26/2014
This function sends messages to the device whenever new accelerometer messages are available.
Syntax
typedef DWORD ACCELEROMETER_MSGCALLBACK(
SENSOR_MESSAGE_TYPE msgType,
LPVOID pAccData,
DWORD cbSizeAccData,
__in_opt LPVOID plvCallbackParam
);
Parameters
msgType
[in] SENSOR_MESSAGE_TYPE enumeration that indicates the message type, and can be one of the following:- MESSAGE_ACCELEROMETER_3D_STATE
- MESSAGE_ACCELEROMETER_3D_DATA
- MESSAGE_ACCELEROMETER_3D_DEVICE_ORIENTATION_CHANGE
- pAccData
[in] The message data.
- cbSizeAccData
[in] Size, in bytes, of the message data in the pAccData parameter.
- plvCallbackParam
[in] Pointer to any optional callback parameters.
Return Value
If the call succeeds, this function returns ERROR_SUCCESS.
Requirements
Header |
accapi.h |