mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
hid: Fixed HidNpadInterfaceType.
This commit is contained in:
parent
ddc9538b69
commit
e74c605a91
@ -375,10 +375,10 @@ typedef enum {
|
||||
|
||||
/// NpadInterfaceType
|
||||
typedef enum {
|
||||
NpadInterfaceType_Bluetooth = 1, ///< Bluetooth.
|
||||
NpadInterfaceType_Rail = 2, ///< Rail.
|
||||
NpadInterfaceType_USB = 3, ///< USB.
|
||||
NpadInterfaceType_Unknown4 = 4, ///< Unknown.
|
||||
HidNpadInterfaceType_Bluetooth = 1, ///< Bluetooth.
|
||||
HidNpadInterfaceType_Rail = 2, ///< Rail.
|
||||
HidNpadInterfaceType_USB = 3, ///< USB.
|
||||
HidNpadInterfaceType_Unknown4 = 4, ///< Unknown.
|
||||
} HidNpadInterfaceType;
|
||||
|
||||
/// XcdInterfaceType
|
||||
|
@ -20,7 +20,7 @@ typedef struct {
|
||||
/// HdlsDeviceInfo, for [9.0.0+]. Converted to/from \ref HiddbgHdlsDeviceInfoV7 on prior sysvers.
|
||||
typedef struct {
|
||||
u8 deviceType; ///< \ref HidDeviceType
|
||||
u8 npadInterfaceType; ///< \ref HidNpadInterfaceType. Additional type field used with the above type field (only applies to ::HidDeviceType_JoyRight1, ::HidDeviceType_JoyLeft2, ::HidDeviceType_FullKey3, and ::HidDeviceType_System19), if the value doesn't match one of the following a default is used. ::HidDeviceType_FullKey3: ::NpadInterfaceType_USB indicates that the controller is connected via USB. :::HidDeviceType_System19: ::NpadInterfaceType_USB = unknown. When value is ::NpadInterfaceType_Rail, state is merged with an existing controller (with ::HidDeviceType_JoyRight1 / ::HidDeviceType_JoyLeft2). Otherwise, it's a dedicated controller.
|
||||
u8 npadInterfaceType; ///< \ref HidNpadInterfaceType. Additional type field used with the above type field (only applies to ::HidDeviceType_JoyRight1, ::HidDeviceType_JoyLeft2, ::HidDeviceType_FullKey3, and ::HidDeviceType_System19), if the value doesn't match one of the following a default is used. ::HidDeviceType_FullKey3: ::HidNpadInterfaceType_USB indicates that the controller is connected via USB. :::HidDeviceType_System19: ::HidNpadInterfaceType_USB = unknown. When value is ::HidNpadInterfaceType_Rail, state is merged with an existing controller (with ::HidDeviceType_JoyRight1 / ::HidDeviceType_JoyLeft2). Otherwise, it's a dedicated controller.
|
||||
u8 pad[0x2]; ///< Padding.
|
||||
u32 singleColorBody; ///< RGBA Single Body Color.
|
||||
u32 singleColorButtons; ///< RGBA Single Buttons Color.
|
||||
|
Loading…
Reference in New Issue
Block a user