mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
hid: Correct some gesture errors
I recently did some RE on touch gestures with the help of a nro I made. I have found that those values where incorrect.
This commit is contained in:
parent
95fca6753d
commit
e2c3ae8e44
@ -328,8 +328,8 @@ typedef enum {
|
||||
|
||||
/// HidGestureAttribute
|
||||
typedef enum {
|
||||
HidGestureAttribute_IsNewTouch = BIT(0), ///< IsNewTouch
|
||||
HidGestureAttribute_IsDoubleTap = BIT(1), ///< IsDoubleTap
|
||||
HidGestureAttribute_IsNewTouch = BIT(4), ///< IsNewTouch
|
||||
HidGestureAttribute_IsDoubleTap = BIT(8), ///< IsDoubleTap
|
||||
} HidGestureAttribute;
|
||||
|
||||
/// HidGestureDirection
|
||||
@ -1012,8 +1012,8 @@ typedef struct HidGestureState {
|
||||
float velocity_x; ///< VelocityX
|
||||
float velocity_y; ///< VelocityY
|
||||
u32 attributes; ///< Bitfield of \ref HidGestureAttribute.
|
||||
u32 scale; ///< Scale
|
||||
u32 rotation_angle; ///< RotationAngle
|
||||
float scale; ///< Scale
|
||||
float rotation_angle; ///< RotationAngle
|
||||
s32 point_count; ///< Number of entries in the points array.
|
||||
HidGesturePoint points[4]; ///< Array of \ref HidGesturePoint with the above count.
|
||||
} HidGestureState;
|
||||
|
Loading…
Reference in New Issue
Block a user