Define units for controller motion events

This commit is contained in:
Cameron Gutman 2023-06-24 21:28:43 -05:00
parent de0efa861a
commit c8aac7f71c

View File

@ -707,6 +707,9 @@ int LiSendControllerTouchEvent(uint8_t controllerNumber, uint8_t eventType, uint
//
// For power and performance reasons, motion sensors should not be enabled unless the host has
// explicitly asked for motion event reports via ConnListenerSetMotionEventState().
//
// LI_MOTION_TYPE_ACCEL should report data in m/s^2.
// LI_MOTION_TYPE_GYRO should report data in deg/s.
#define LI_MOTION_TYPE_ACCEL 0x01
#define LI_MOTION_TYPE_GYRO 0x02
int LiSendControllerMotionEvent(uint8_t controllerNumber, uint8_t motionType, float x, float y, float z);