mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
hid: Added pre-made HidNpadStyleSet values for common style sets
This commit is contained in:
parent
1aa4ec82fb
commit
8e0c514044
@ -242,6 +242,9 @@ typedef enum {
|
|||||||
HidNpadStyleTag_Npad10 = BIT(10),
|
HidNpadStyleTag_Npad10 = BIT(10),
|
||||||
HidNpadStyleTag_NpadSystemExt = BIT(29), ///< Generic external controller
|
HidNpadStyleTag_NpadSystemExt = BIT(29), ///< Generic external controller
|
||||||
HidNpadStyleTag_NpadSystem = BIT(30), ///< Generic controller
|
HidNpadStyleTag_NpadSystem = BIT(30), ///< Generic controller
|
||||||
|
|
||||||
|
HidNpadStyleSet_NpadFullCtrl = HidNpadStyleTag_NpadFullKey | HidNpadStyleTag_NpadHandheld | HidNpadStyleTag_NpadJoyDual, ///< Style set comprising Npad styles containing the full set of controls {FullKey, Handheld, JoyDual}
|
||||||
|
HidNpadStyleSet_NpadStandard = HidNpadStyleSet_NpadFullCtrl | HidNpadStyleTag_NpadJoyLeft | HidNpadStyleTag_NpadJoyRight, ///< Style set comprising all standard Npad styles {FullKey, Handheld, JoyDual, JoyLeft, JoyRight}
|
||||||
} HidNpadStyleTag;
|
} HidNpadStyleTag;
|
||||||
|
|
||||||
/// HidColorAttribute
|
/// HidColorAttribute
|
||||||
|
@ -127,7 +127,7 @@ void hidScanInput(void) {
|
|||||||
hidInitializeMouse();
|
hidInitializeMouse();
|
||||||
_hidReset();
|
_hidReset();
|
||||||
|
|
||||||
rc = hidSetSupportedNpadStyleSet(HidNpadStyleTag_NpadFullKey | HidNpadStyleTag_NpadHandheld | HidNpadStyleTag_NpadJoyDual | HidNpadStyleTag_NpadJoyLeft | HidNpadStyleTag_NpadJoyRight | HidNpadStyleTag_NpadSystemExt | HidNpadStyleTag_NpadSystem);
|
rc = hidSetSupportedNpadStyleSet(HidNpadStyleSet_NpadStandard | HidNpadStyleTag_NpadSystemExt | HidNpadStyleTag_NpadSystem);
|
||||||
if (R_FAILED(rc)) diagAbortWithResult(rc);
|
if (R_FAILED(rc)) diagAbortWithResult(rc);
|
||||||
|
|
||||||
static const HidNpadIdType idbuf[] = {
|
static const HidNpadIdType idbuf[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user