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:
Narr the Reg 2021-05-03 08:59:37 -05:00 committed by fincs
parent 95fca6753d
commit e2c3ae8e44

View File

@ -328,8 +328,8 @@ typedef enum {
/// HidGestureAttribute /// HidGestureAttribute
typedef enum { typedef enum {
HidGestureAttribute_IsNewTouch = BIT(0), ///< IsNewTouch HidGestureAttribute_IsNewTouch = BIT(4), ///< IsNewTouch
HidGestureAttribute_IsDoubleTap = BIT(1), ///< IsDoubleTap HidGestureAttribute_IsDoubleTap = BIT(8), ///< IsDoubleTap
} HidGestureAttribute; } HidGestureAttribute;
/// HidGestureDirection /// HidGestureDirection
@ -1012,8 +1012,8 @@ typedef struct HidGestureState {
float velocity_x; ///< VelocityX float velocity_x; ///< VelocityX
float velocity_y; ///< VelocityY float velocity_y; ///< VelocityY
u32 attributes; ///< Bitfield of \ref HidGestureAttribute. u32 attributes; ///< Bitfield of \ref HidGestureAttribute.
u32 scale; ///< Scale float scale; ///< Scale
u32 rotation_angle; ///< RotationAngle float rotation_angle; ///< RotationAngle
s32 point_count; ///< Number of entries in the points array. s32 point_count; ///< Number of entries in the points array.
HidGesturePoint points[4]; ///< Array of \ref HidGesturePoint with the above count. HidGesturePoint points[4]; ///< Array of \ref HidGesturePoint with the above count.
} HidGestureState; } HidGestureState;