mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-02 07:46:14 +00:00
Define units for controller motion events
This commit is contained in:
parent
de0efa861a
commit
c8aac7f71c
@ -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
|
// For power and performance reasons, motion sensors should not be enabled unless the host has
|
||||||
// explicitly asked for motion event reports via ConnListenerSetMotionEventState().
|
// 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_ACCEL 0x01
|
||||||
#define LI_MOTION_TYPE_GYRO 0x02
|
#define LI_MOTION_TYPE_GYRO 0x02
|
||||||
int LiSendControllerMotionEvent(uint8_t controllerNumber, uint8_t motionType, float x, float y, float z);
|
int LiSendControllerMotionEvent(uint8_t controllerNumber, uint8_t motionType, float x, float y, float z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user