Updated Hdls structs.

This commit is contained in:
yellows8 2019-06-24 21:50:17 -04:00
parent 6978003c42
commit 65e2e791a3
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -10,7 +10,7 @@
/// HdlsDeviceInfo /// HdlsDeviceInfo
typedef struct { typedef struct {
u32 type; ///< See \ref HidControllerType, only one bit can be set. u32 type; ///< Only one bit can be set. BIT(0) = Pro-Controller, BIT(1) = Joy-Con Left, BIT(2) = Joy-Con Right.
u32 singleColorBody; ///< RGBA Single Body Color u32 singleColorBody; ///< RGBA Single Body Color
u32 singleColorButtons; ///< RGBA Single Buttons Color u32 singleColorButtons; ///< RGBA Single Buttons Color
u8 unk_xc; ///< Unknown u8 unk_xc; ///< Unknown
@ -19,7 +19,9 @@ typedef struct {
/// HdlsState /// HdlsState
typedef struct { typedef struct {
u8 unk_x0[0x8]; ///< Unknown u8 powerConnected; ///< powerConnected for the main PowerInfo, see \ref HidFlags.
u8 flags; ///< ORRed with powerConnected to set the value of the first byte for \ref HidFlags. For example, value 1 here will set isCharging for the main PowerInfo.
u8 unk_x2[0x6]; ///< Unknown
u32 batteryCharge; ///< batteryCharge for the main PowerInfo, see \ref HidPowerInfo. u32 batteryCharge; ///< batteryCharge for the main PowerInfo, see \ref HidPowerInfo.
u32 buttons; ///< See \ref HidControllerKeys. u32 buttons; ///< See \ref HidControllerKeys.
JoystickPosition joysticks[JOYSTICK_NUM_STICKS]; ///< \ref JoystickPosition JoystickPosition joysticks[JOYSTICK_NUM_STICKS]; ///< \ref JoystickPosition