10 #include "../kernel/event.h"
11 #include "../services/btdrv_types.h"
12 #include "../sf/service.h"
43 HidMouseButton_Left =
BIT(0),
44 HidMouseButton_Right =
BIT(1),
45 HidMouseButton_Middle =
BIT(2),
46 HidMouseButton_Forward =
BIT(3),
47 HidMouseButton_Back =
BIT(4),
58 HidKeyboardKey_G = 10,
59 HidKeyboardKey_H = 11,
60 HidKeyboardKey_I = 12,
61 HidKeyboardKey_J = 13,
62 HidKeyboardKey_K = 14,
63 HidKeyboardKey_L = 15,
64 HidKeyboardKey_M = 16,
65 HidKeyboardKey_N = 17,
66 HidKeyboardKey_O = 18,
67 HidKeyboardKey_P = 19,
68 HidKeyboardKey_Q = 20,
69 HidKeyboardKey_R = 21,
70 HidKeyboardKey_S = 22,
71 HidKeyboardKey_T = 23,
72 HidKeyboardKey_U = 24,
73 HidKeyboardKey_V = 25,
74 HidKeyboardKey_W = 26,
75 HidKeyboardKey_X = 27,
76 HidKeyboardKey_Y = 28,
77 HidKeyboardKey_Z = 29,
78 HidKeyboardKey_D1 = 30,
79 HidKeyboardKey_D2 = 31,
80 HidKeyboardKey_D3 = 32,
81 HidKeyboardKey_D4 = 33,
82 HidKeyboardKey_D5 = 34,
83 HidKeyboardKey_D6 = 35,
84 HidKeyboardKey_D7 = 36,
85 HidKeyboardKey_D8 = 37,
86 HidKeyboardKey_D9 = 38,
87 HidKeyboardKey_D0 = 39,
88 HidKeyboardKey_Return = 40,
89 HidKeyboardKey_Escape = 41,
90 HidKeyboardKey_Backspace = 42,
91 HidKeyboardKey_Tab = 43,
92 HidKeyboardKey_Space = 44,
93 HidKeyboardKey_Minus = 45,
94 HidKeyboardKey_Plus = 46,
95 HidKeyboardKey_OpenBracket = 47,
96 HidKeyboardKey_CloseBracket = 48,
97 HidKeyboardKey_Pipe = 49,
98 HidKeyboardKey_Tilde = 50,
99 HidKeyboardKey_Semicolon = 51,
100 HidKeyboardKey_Quote = 52,
101 HidKeyboardKey_Backquote = 53,
102 HidKeyboardKey_Comma = 54,
103 HidKeyboardKey_Period = 55,
104 HidKeyboardKey_Slash = 56,
105 HidKeyboardKey_CapsLock = 57,
106 HidKeyboardKey_F1 = 58,
107 HidKeyboardKey_F2 = 59,
108 HidKeyboardKey_F3 = 60,
109 HidKeyboardKey_F4 = 61,
110 HidKeyboardKey_F5 = 62,
111 HidKeyboardKey_F6 = 63,
112 HidKeyboardKey_F7 = 64,
113 HidKeyboardKey_F8 = 65,
114 HidKeyboardKey_F9 = 66,
115 HidKeyboardKey_F10 = 67,
116 HidKeyboardKey_F11 = 68,
117 HidKeyboardKey_F12 = 69,
118 HidKeyboardKey_PrintScreen = 70,
119 HidKeyboardKey_ScrollLock = 71,
120 HidKeyboardKey_Pause = 72,
121 HidKeyboardKey_Insert = 73,
122 HidKeyboardKey_Home = 74,
123 HidKeyboardKey_PageUp = 75,
124 HidKeyboardKey_Delete = 76,
125 HidKeyboardKey_End = 77,
126 HidKeyboardKey_PageDown = 78,
127 HidKeyboardKey_RightArrow = 79,
128 HidKeyboardKey_LeftArrow = 80,
129 HidKeyboardKey_DownArrow = 81,
130 HidKeyboardKey_UpArrow = 82,
131 HidKeyboardKey_NumLock = 83,
132 HidKeyboardKey_NumPadDivide = 84,
133 HidKeyboardKey_NumPadMultiply = 85,
134 HidKeyboardKey_NumPadSubtract = 86,
135 HidKeyboardKey_NumPadAdd = 87,
136 HidKeyboardKey_NumPadEnter = 88,
137 HidKeyboardKey_NumPad1 = 89,
138 HidKeyboardKey_NumPad2 = 90,
139 HidKeyboardKey_NumPad3 = 91,
140 HidKeyboardKey_NumPad4 = 92,
141 HidKeyboardKey_NumPad5 = 93,
142 HidKeyboardKey_NumPad6 = 94,
143 HidKeyboardKey_NumPad7 = 95,
144 HidKeyboardKey_NumPad8 = 96,
145 HidKeyboardKey_NumPad9 = 97,
146 HidKeyboardKey_NumPad0 = 98,
147 HidKeyboardKey_NumPadDot = 99,
148 HidKeyboardKey_Backslash = 100,
149 HidKeyboardKey_Application = 101,
150 HidKeyboardKey_Power = 102,
151 HidKeyboardKey_NumPadEquals = 103,
152 HidKeyboardKey_F13 = 104,
153 HidKeyboardKey_F14 = 105,
154 HidKeyboardKey_F15 = 106,
155 HidKeyboardKey_F16 = 107,
156 HidKeyboardKey_F17 = 108,
157 HidKeyboardKey_F18 = 109,
158 HidKeyboardKey_F19 = 110,
159 HidKeyboardKey_F20 = 111,
160 HidKeyboardKey_F21 = 112,
161 HidKeyboardKey_F22 = 113,
162 HidKeyboardKey_F23 = 114,
163 HidKeyboardKey_F24 = 115,
164 HidKeyboardKey_NumPadComma = 133,
165 HidKeyboardKey_Ro = 135,
166 HidKeyboardKey_KatakanaHiragana = 136,
167 HidKeyboardKey_Yen = 137,
168 HidKeyboardKey_Henkan = 138,
169 HidKeyboardKey_Muhenkan = 139,
170 HidKeyboardKey_NumPadCommaPc98 = 140,
171 HidKeyboardKey_HangulEnglish = 144,
172 HidKeyboardKey_Hanja = 145,
173 HidKeyboardKey_Katakana = 146,
174 HidKeyboardKey_Hiragana = 147,
175 HidKeyboardKey_ZenkakuHankaku = 148,
176 HidKeyboardKey_LeftControl = 224,
177 HidKeyboardKey_LeftShift = 225,
178 HidKeyboardKey_LeftAlt = 226,
179 HidKeyboardKey_LeftGui = 227,
180 HidKeyboardKey_RightControl = 228,
181 HidKeyboardKey_RightShift = 229,
182 HidKeyboardKey_RightAlt = 230,
183 HidKeyboardKey_RightGui = 231,
188 HidKeyboardModifier_Control =
BIT(0),
189 HidKeyboardModifier_Shift =
BIT(1),
190 HidKeyboardModifier_LeftAlt =
BIT(2),
191 HidKeyboardModifier_RightAlt =
BIT(3),
192 HidKeyboardModifier_Gui =
BIT(4),
193 HidKeyboardModifier_CapsLock =
BIT(8),
194 HidKeyboardModifier_ScrollLock =
BIT(9),
195 HidKeyboardModifier_NumLock =
BIT(10),
196 HidKeyboardModifier_Katakana =
BIT(11),
197 HidKeyboardModifier_Hiragana =
BIT(12),
486 XcdInterfaceType_Bluetooth =
BIT(0),
487 XcdInterfaceType_Uart =
BIT(1),
488 XcdInterfaceType_Usb =
BIT(2),
489 XcdInterfaceType_FieldSet =
BIT(7),
601 #define JOYSTICK_MAX (0x7FFF)
602 #define JOYSTICK_MIN (-0x7FFF)
987 u32 battery_level[3];
996 u8 reserved_x41AD[0x5B];
1084 u8 home_button[0x200];
1085 u8 sleep_button[0x200];
1086 u8 capture_button[0x200];
1087 u8 input_detector[0x800];
1092 u8 unk_x3C220[0x3DE0];
1098 u64 sampling_number;
1106 u64 sampling_number;
1243 return (state->keys[key / 64] & (1UL << (key & 63))) != 0;
Result hidSendVibrationGcErmCommand(HidVibrationDeviceHandle handle, HidVibrationGcErmCommand cmd)
Send HidVibrationGcErmCommand to the specified device, for HidVibrationDeviceType_GcErm.
HidKeyboardModifier
HidKeyboardModifier.
Definition: hid.h:187
size_t hidGetNpadStatesHandheld(HidNpadIdType id, HidNpadHandheldState *states, size_t count)
Gets HidNpadHandheldState.
Result hidSetNpadJoyAssignmentModeSingle(HidNpadIdType id, HidNpadJoyDeviceType type)
This is the same as hidSetNpadJoyAssignmentModeSingleWithDestination, except without the output param...
Result hidSetNpadCaptureButtonAssignment(HidNpadStyleTag style, u64 buttons)
Assigns the button(s) which trigger the CaptureButton.
Result hidSetTouchScreenConfiguration(const HidTouchScreenConfigurationForNx *config)
SetTouchScreenConfiguration.
Result hidSetPalmaFrModeType(HidPalmaConnectionHandle handle, HidPalmaFrModeType type)
SetPalmaFrModeType.
Result hidReadPalmaStep(HidPalmaConnectionHandle handle)
ReadPalmaStep.
Result hidSetNpadJoyAssignmentModeSingleByDefault(HidNpadIdType id)
This is the same as hidSetNpadJoyAssignmentModeSingle, except HidNpadJoyDeviceType_Left is used for t...
Result hidIsSevenSixAxisSensorAtRest(bool *out)
IsSevenSixAxisSensorAtRest.
u32 hidGetNpadDeviceType(HidNpadIdType id)
Gets the DeviceType for the specified Npad.
Result hidGetNpadHandheldActivationMode(HidNpadHandheldActivationMode *out)
Gets the HidNpadHandheldActivationMode.
Result hidStopSevenSixAxisSensor(void)
Stops the SevenSixAxisSensor.
Result hidInitialize(void)
Initialize hid. Called automatically during app startup.
HidPalmaFeature
PalmaFeature.
Definition: hid.h:576
@ HidPalmaFeature_Step
Step.
Definition: hid.h:579
@ HidPalmaFeature_MuteSwitch
MuteSwitch.
Definition: hid.h:580
@ HidPalmaFeature_RumbleFeedback
RumbleFeedback.
Definition: hid.h:578
@ HidPalmaFeature_FrMode
FrMode.
Definition: hid.h:577
HidColorAttribute
HidColorAttribute.
Definition: hid.h:249
@ HidColorAttribute_Ok
Ok.
Definition: hid.h:250
@ HidColorAttribute_NoController
NoController.
Definition: hid.h:252
@ HidColorAttribute_ReadError
ReadError.
Definition: hid.h:251
Result hidFinalizeSevenSixAxisSensor(void)
Finalizes the SevenSixAxisSensor.
Result hidStartLrAssignmentMode(void)
StartLrAssignmentMode.
HidNpadCommonState HidNpadSystemState
State for HidNpadStyleTag_NpadSystem. Analog-sticks state are always zero. Only the following button ...
Definition: hid.h:845
Result hidSetGyroscopeZeroDriftMode(HidSixAxisSensorHandle handle, HidGyroscopeZeroDriftMode mode)
Sets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle.
size_t hidGetSixAxisSensorStates(HidSixAxisSensorHandle handle, HidSixAxisSensorState *states, size_t count)
Gets HidSixAxisSensorState for the specified handle.
Result hidMergeSingleJoyAsDualJoy(HidNpadIdType id0, HidNpadIdType id1)
Merge two single joy-cons into a dual-mode controller.
void hidGetNpadSystemProperties(HidNpadIdType id, HidNpadSystemProperties *out)
Gets the HidNpadSystemProperties for the specified Npad.
Result hidPlayPalmaActivity(HidPalmaConnectionHandle handle, u16 val)
PlayPalmaActivity.
Result hidSendVibrationValues(const HidVibrationDeviceHandle *handles, const HidVibrationValue *values, s32 count)
Send vibration values[index] to handles[index].
Result hidGetNpadCommunicationMode(HidNpadCommunicationMode *out)
GetNpadCommunicationMode.
Result hidGetNpadControllerColorSingle(HidNpadIdType id, HidNpadControllerColor *color)
Gets the main HidNpadControllerColor for the specified Npad.
Result hidIsVibrationDeviceMounted(HidVibrationDeviceHandle handle, bool *flag)
Gets whether vibration is available with the specified device.
size_t hidGetMouseStates(HidMouseState *states, size_t count)
Gets HidMouseState.
HidGestureAttribute
HidGestureAttribute.
Definition: hid.h:335
@ HidGestureAttribute_IsNewTouch
IsNewTouch.
Definition: hid.h:336
@ HidGestureAttribute_IsDoubleTap
IsDoubleTap.
Definition: hid.h:337
HidAppletFooterUiType
AppletFooterUiType (system)
Definition: hid.h:451
@ HidAppletFooterUiType_LarkNesLeft
LarkNesLeft.
Definition: hid.h:469
@ HidAppletFooterUiType_JoyLeftHorizontal
JoyLeftHorizontal.
Definition: hid.h:460
@ HidAppletFooterUiType_Verification
Verification.
Definition: hid.h:472
@ HidAppletFooterUiType_LarkHvc2
LarkHvc2.
Definition: hid.h:468
@ HidAppletFooterUiType_SwitchProController
SwitchProController.
Definition: hid.h:464
@ HidAppletFooterUiType_HandheldJoyConLeftJoyConRight
HandheldJoyConLeftJoyConRight.
Definition: hid.h:456
@ HidAppletFooterUiType_Lagon
[13.0.0+] Lagon
Definition: hid.h:473
@ HidAppletFooterUiType_JoyRightVertical
JoyRightVertical.
Definition: hid.h:463
@ HidAppletFooterUiType_HandheldJoyConLeftOnly
HandheldJoyConLeftOnly.
Definition: hid.h:454
@ HidAppletFooterUiType_None
None.
Definition: hid.h:452
@ HidAppletFooterUiType_LarkHvc1
LarkHvc1.
Definition: hid.h:467
@ HidAppletFooterUiType_JoyLeftVertical
JoyLeftVertical.
Definition: hid.h:461
@ HidAppletFooterUiType_JoyDualRightOnly
JoyDualRightOnly.
Definition: hid.h:459
@ HidAppletFooterUiType_JoyDual
JoyDual.
Definition: hid.h:457
@ HidAppletFooterUiType_CompatibleProController
CompatibleProController.
Definition: hid.h:465
@ HidAppletFooterUiType_JoyRightHorizontal
JoyRightHorizontal.
Definition: hid.h:462
@ HidAppletFooterUiType_JoyDualLeftOnly
JoyDualLeftOnly.
Definition: hid.h:458
@ HidAppletFooterUiType_HandheldNone
HandheldNone.
Definition: hid.h:453
@ HidAppletFooterUiType_Lucia
Lucia.
Definition: hid.h:471
@ HidAppletFooterUiType_CompatibleJoyCon
CompatibleJoyCon.
Definition: hid.h:466
@ HidAppletFooterUiType_LarkNesRight
LarkNesRight.
Definition: hid.h:470
@ HidAppletFooterUiType_HandheldJoyConRightOnly
HandheldJoyConRightOnly.
Definition: hid.h:455
Result hidSetPalmaDataBaseIdentificationVersion(HidPalmaConnectionHandle handle, s32 version)
SetPalmaDataBaseIdentificationVersion.
HidDebugPadButton
HidDebugPadButton.
Definition: hid.h:17
@ HidDebugPadButton_ZL
ZL button.
Definition: hid.h:24
@ HidDebugPadButton_Select
Select button.
Definition: hid.h:27
@ HidDebugPadButton_Up
D-Pad Up button.
Definition: hid.h:29
@ HidDebugPadButton_Y
Y button.
Definition: hid.h:21
@ HidDebugPadButton_Right
D-Pad Right button.
Definition: hid.h:30
@ HidDebugPadButton_Start
Start button.
Definition: hid.h:26
@ HidDebugPadButton_X
X button.
Definition: hid.h:20
@ HidDebugPadButton_ZR
ZR button.
Definition: hid.h:25
@ HidDebugPadButton_L
L button.
Definition: hid.h:22
@ HidDebugPadButton_R
R button.
Definition: hid.h:23
@ HidDebugPadButton_B
B button.
Definition: hid.h:19
@ HidDebugPadButton_Down
D-Pad Down button.
Definition: hid.h:31
@ HidDebugPadButton_A
A button.
Definition: hid.h:18
@ HidDebugPadButton_Left
D-Pad Left button.
Definition: hid.h:28
Result hidInitializePalma(HidPalmaConnectionHandle handle)
InitializePalma.
size_t hidGetNpadStatesHandheldLark(HidNpadIdType id, HidNpadHandheldLarkState *states, size_t count)
Gets HidNpadHandheldLarkState.
Result hidAcquirePalmaOperationCompleteEvent(HidPalmaConnectionHandle handle, Event *out_event, bool autoclear)
Gets an Event which is signaled when data is available with hidGetPalmaOperationInfo.
HidDebugPadAttribute
HidDebugPadAttribute.
Definition: hid.h:302
@ HidDebugPadAttribute_IsConnected
IsConnected.
Definition: hid.h:303
size_t hidGetNpadStatesSystem(HidNpadIdType id, HidNpadSystemState *states, size_t count)
Gets HidNpadSystemState.
HidNpadCommonState HidNpadJoyLeftState
State for HidNpadStyleTag_NpadJoyLeft.
Definition: hid.h:793
Result hidIsSixAxisSensorFusionEnabled(HidSixAxisSensorHandle handle, bool *out)
IsSixAxisSensorFusionEnabled.
Result hidGetSevenSixAxisSensorStates(HidSevenSixAxisSensorState *states, size_t count, size_t *total_out)
GetSevenSixAxisSensorStates.
Result hidIsFirmwareUpdateNeededForNotification(bool *out)
IsFirmwareUpdateNeededForNotification.
u32 hidGetAppletFooterUiAttributesSet(HidNpadIdType id)
Gets the AppletFooterUiAttributesSet for the specified Npad.
HidKeyboardKey
HidKeyboardKey.
Definition: hid.h:51
Result hidSetSixAxisSensorFusionParameters(HidSixAxisSensorHandle handle, float unk0, float unk1)
SetSixAxisSensorFusionParameters.
HidNpadCommonState HidNpadJoyRightState
State for HidNpadStyleTag_NpadJoyRight.
Definition: hid.h:794
Result hidIsFirmwareUpdateAvailableForSixAxisSensor(HidSixAxisSensorHandle handle, bool *out)
IsFirmwareUpdateAvailableForSixAxisSensor.
HidMouseButton
HidMouseButton.
Definition: hid.h:42
void hidInitializeGesture(void)
Initialize Gesture. Must be called when Gesture is being used.
size_t hidGetNpadStatesLark(HidNpadIdType id, HidNpadLarkState *states, size_t count)
Gets HidNpadLarkState.
HidNpadLagerType hidGetNpadLagerType(HidNpadIdType id)
Gets HidNpadLagerType for the specified Npad.
HidNpadCommonState HidNpadFullKeyState
State for HidNpadStyleTag_NpadFullKey.
Definition: hid.h:790
size_t hidGetNpadStatesJoyDual(HidNpadIdType id, HidNpadJoyDualState *states, size_t count)
Gets HidNpadJoyDualState.
Result hidSwapNpadAssignment(HidNpadIdType id0, HidNpadIdType id1)
SwapNpadAssignment.
HidKeyboardLockKeyEvent
KeyboardLockKeyEvent.
Definition: hid.h:201
@ HidKeyboardLockKeyEvent_CapsLockToggle
CapsLockToggle.
Definition: hid.h:207
@ HidKeyboardLockKeyEvent_ScrollLockToggle
ScrollLockToggle.
Definition: hid.h:210
@ HidKeyboardLockKeyEvent_CapsLockOff
CapsLockOff.
Definition: hid.h:206
@ HidKeyboardLockKeyEvent_ScrollLockOn
ScrollLockOn.
Definition: hid.h:208
@ HidKeyboardLockKeyEvent_NumLockToggle
NumLockToggle.
Definition: hid.h:204
@ HidKeyboardLockKeyEvent_NumLockOn
NumLockOn.
Definition: hid.h:202
@ HidKeyboardLockKeyEvent_ScrollLockOff
ScrollLockOff.
Definition: hid.h:209
@ HidKeyboardLockKeyEvent_NumLockOff
NumLockOff.
Definition: hid.h:203
@ HidKeyboardLockKeyEvent_CapsLockOn
CapsLockOn.
Definition: hid.h:205
HidGestureType
HidGestureType.
Definition: hid.h:350
@ HidGestureType_Touch
Touch.
Definition: hid.h:354
@ HidGestureType_Rotate
Rotate.
Definition: hid.h:360
@ HidGestureType_Press
Press.
Definition: hid.h:355
@ HidGestureType_Complete
Complete.
Definition: hid.h:352
@ HidGestureType_Tap
Tap.
Definition: hid.h:356
@ HidGestureType_Cancel
Cancel.
Definition: hid.h:353
@ HidGestureType_Pan
Pan.
Definition: hid.h:357
@ HidGestureType_Pinch
Pinch.
Definition: hid.h:359
@ HidGestureType_Idle
Idle.
Definition: hid.h:351
@ HidGestureType_Swipe
Swipe.
Definition: hid.h:358
Result hidGetNpadControllerColorSplit(HidNpadIdType id, HidNpadControllerColor *color_left, HidNpadControllerColor *color_right)
Gets the left/right HidNpadControllerColor for the specified Npad (Joy-Con pair in dual mode).
Result hidEnableUnintendedHomeButtonInputProtection(HidNpadIdType id, bool flag)
EnableUnintendedHomeButtonInputProtection.
HidGyroscopeZeroDriftMode
GyroscopeZeroDriftMode.
Definition: hid.h:364
@ HidGyroscopeZeroDriftMode_Standard
Standard.
Definition: hid.h:366
@ HidGyroscopeZeroDriftMode_Loose
Loose.
Definition: hid.h:365
@ HidGyroscopeZeroDriftMode_Tight
Tight.
Definition: hid.h:367
HidNpadCommonState HidNpadJoyDualState
State for HidNpadStyleTag_NpadJoyDual.
Definition: hid.h:792
Result hidGetGyroBias(UtilFloat3 *out)
GetGyroBias.
Result hidEnablePalmaStep(HidPalmaConnectionHandle handle, bool flag)
EnablePalmaStep.
Result hidResetPalmaPlayLog(HidPalmaConnectionHandle handle, u16 unk)
ResetPalmaPlayLog.
Result hidSetPalmaUniqueCodeInvalid(HidPalmaConnectionHandle handle)
SetPalmaUniqueCodeInvalid.
Result hidDisconnectNpad(HidNpadIdType id)
DisconnectNpad.
void hidInitializeKeyboard(void)
Initialize Keyboard. Must be called when Keyboard is being used. Used automatically by hidScanInput w...
HidNpadCommonState HidNpadPalmaState
State for HidNpadStyleTag_NpadPalma.
Definition: hid.h:808
HidDeviceTypeBits
DeviceType (system)
Definition: hid.h:404
@ HidDeviceTypeBits_Palma
Poké Ball Plus controller.
Definition: hid.h:411
@ HidDeviceTypeBits_LarkNesLeft
NES left controller.
Definition: hid.h:414
@ HidDeviceTypeBits_LarkHvcRight
Famicom right controller (with microphone).
Definition: hid.h:413
@ HidDeviceTypeBits_JoyLeft
Joy-Con left controller.
Definition: hid.h:409
@ HidDeviceTypeBits_Lagon
N64 controller.
Definition: hid.h:421
@ HidDeviceTypeBits_FullKey
Pro Controller and Gc controller.
Definition: hid.h:405
@ HidDeviceTypeBits_Lucia
SNES controller.
Definition: hid.h:420
@ HidDeviceTypeBits_HandheldLarkNesRight
NES right controller in handheld mode.
Definition: hid.h:419
@ HidDeviceTypeBits_HandheldLarkHvcRight
Famicom right controller (with microphone) in handheld mode.
Definition: hid.h:417
@ HidDeviceTypeBits_HandheldLarkNesLeft
NES left controller in handheld mode.
Definition: hid.h:418
@ HidDeviceTypeBits_HandheldLeft
Joy-Con/Famicom/NES left controller in handheld mode.
Definition: hid.h:407
@ HidDeviceTypeBits_JoyRight
Joy-Con right controller.
Definition: hid.h:410
@ HidDeviceTypeBits_Lager
Sega Genesis controller.
Definition: hid.h:422
@ HidDeviceTypeBits_DebugPad
DebugPad.
Definition: hid.h:406
@ HidDeviceTypeBits_LarkNesRight
NES right controller.
Definition: hid.h:415
@ HidDeviceTypeBits_System
Generic controller.
Definition: hid.h:423
@ HidDeviceTypeBits_HandheldLarkHvcLeft
Famicom left controller in handheld mode.
Definition: hid.h:416
@ HidDeviceTypeBits_HandheldRight
Joy-Con/Famicom/NES right controller in handheld mode.
Definition: hid.h:408
@ HidDeviceTypeBits_LarkHvcLeft
Famicom left controller.
Definition: hid.h:412
HidSixAxisSensorAttribute
HidSixAxisSensorAttribute.
Definition: hid.h:329
@ HidSixAxisSensorAttribute_IsInterpolated
IsInterpolated.
Definition: hid.h:331
@ HidSixAxisSensorAttribute_IsConnected
IsConnected.
Definition: hid.h:330
HidGestureDirection
HidGestureDirection.
Definition: hid.h:341
@ HidGestureDirection_Down
Down.
Definition: hid.h:346
@ HidGestureDirection_Right
Right.
Definition: hid.h:345
@ HidGestureDirection_Up
Up.
Definition: hid.h:344
@ HidGestureDirection_Left
Left.
Definition: hid.h:343
@ HidGestureDirection_None
None.
Definition: hid.h:342
size_t hidGetKeyboardStates(HidKeyboardState *states, size_t count)
Gets HidKeyboardState.
Result hidEnableSixAxisSensorFusion(HidSixAxisSensorHandle handle, bool flag)
EnableSixAxisSensorFusion.
HidNpadJoyAssignmentMode
NpadJoyAssignmentMode.
Definition: hid.h:390
@ HidNpadJoyAssignmentMode_Dual
Dual (Set by hidSetNpadJoyAssignmentModeDual)
Definition: hid.h:391
@ HidNpadJoyAssignmentMode_Single
Single (Set by hidSetNpadJoyAssignmentModeSingle*())
Definition: hid.h:392
HidNpadInterfaceType
NpadInterfaceType (system)
Definition: hid.h:477
@ HidNpadInterfaceType_Bluetooth
Bluetooth.
Definition: hid.h:478
@ HidNpadInterfaceType_Rail
Rail.
Definition: hid.h:479
@ HidNpadInterfaceType_USB
USB.
Definition: hid.h:480
@ HidNpadInterfaceType_Unknown4
Unknown.
Definition: hid.h:481
Result hidBeginPermitVibrationSession(void)
Begins a forced-permitted vibration session.
HidVibrationDeviceType
Type values for HidVibrationDeviceInfo::type.
Definition: hid.h:518
@ HidVibrationDeviceType_LinearResonantActuator
LinearResonantActuator.
Definition: hid.h:520
@ HidVibrationDeviceType_Unknown
Unknown.
Definition: hid.h:519
@ HidVibrationDeviceType_GcErm
GcErm (HidNpadStyleTag_NpadGc)
Definition: hid.h:521
Result hidReadPalmaPlayLog(HidPalmaConnectionHandle handle, u16 unk)
ReadPalmaPlayLog.
size_t hidGetNpadStatesJoyLeft(HidNpadIdType id, HidNpadJoyLeftState *states, size_t count)
Gets HidNpadJoyLeftState.
HidTouchAttribute
HidTouchAttribute.
Definition: hid.h:307
@ HidTouchAttribute_End
End.
Definition: hid.h:309
@ HidTouchAttribute_Start
Start.
Definition: hid.h:308
HidNpadJoyAssignmentMode hidGetNpadJoyAssignment(HidNpadIdType id)
Gets the HidNpadJoyAssignmentMode for the specified Npad.
void hidInitializeNpad(void)
Initialize Npad. Must be called when Npad is being used. Used automatically by hidScanInput when requ...
Result hidClearNpadCaptureButtonAssignment(void)
ClearNpadCaptureButtonAssignment.
Result hidResetPalmaStep(HidPalmaConnectionHandle handle)
ResetPalmaStep.
Result hidGetPalmaDataBaseIdentificationVersion(HidPalmaConnectionHandle handle)
GetPalmaDataBaseIdentificationVersion.
Result hidSetNpadJoyAssignmentModeDual(HidNpadIdType id)
Use this if you want to use a pair of joy-cons as a single HidNpadIdType_No*.
Result hidSetNpadJoyHoldType(HidNpadJoyHoldType type)
Sets the HidNpadJoyHoldType.
Result hidGetSixAxisSensorHandles(HidSixAxisSensorHandle *handles, s32 total_handles, HidNpadIdType id, HidNpadStyleTag style)
Gets SixAxisSensorHandles.
Result hidIsUsbFullKeyControllerConnected(HidNpadIdType id, bool *out)
IsUsbFullKeyControllerConnected.
HidNpadLagerType
NpadLagerType.
Definition: hid.h:510
@ HidNpadLagerType_E
E.
Definition: hid.h:513
@ HidNpadLagerType_U
U.
Definition: hid.h:514
@ HidNpadLagerType_Invalid
Invalid.
Definition: hid.h:511
@ HidNpadLagerType_J
J.
Definition: hid.h:512
HidVibrationGcErmCommand
VibrationGcErmCommand.
Definition: hid.h:532
@ HidVibrationGcErmCommand_Start
Starts the vibration.
Definition: hid.h:534
@ HidVibrationGcErmCommand_StopHard
Stops the vibration immediately, with no decay phase.
Definition: hid.h:535
@ HidVibrationGcErmCommand_Stop
Stops the vibration with a decay phase.
Definition: hid.h:533
Result hidStartSixAxisSensor(HidSixAxisSensorHandle handle)
Starts the SixAxisSensor for the specified handle.
Result hidSetSevenSixAxisSensorFusionStrength(float strength)
Sets the SevenSixAxisSensor FusionStrength.
HidTouchScreenModeForNx
HidTouchScreenModeForNx.
Definition: hid.h:35
@ HidTouchScreenModeForNx_Finger
Finger.
Definition: hid.h:37
@ HidTouchScreenModeForNx_Heat2
Heat2.
Definition: hid.h:38
@ HidTouchScreenModeForNx_UseSystemSetting
UseSystemSetting.
Definition: hid.h:36
void hidGetNpadPowerInfoSplit(HidNpadIdType id, HidPowerInfo *info_left, HidPowerInfo *info_right)
Gets the left/right HidPowerInfo for the specified Npad (Joy-Con pair in dual mode).
Result hidSetIsPalmaPairedConnectable(bool flag)
Sets whether paired Palma can connect.
Result hidGetSensorFusionError(float *out)
GetSensorFusionError.
HidDeviceType
Internal DeviceType for [9.0.0+]. Converted to/from the pre-9.0.0 version of this by the hiddbg funcs...
Definition: hid.h:427
@ HidDeviceType_JoyLeft4
HidDeviceTypeBits_JoyLeft
Definition: hid.h:431
@ HidDeviceType_Lucia
HidDeviceTypeBits_Lucia
Definition: hid.h:438
@ HidDeviceType_LarkHvcRight
HidDeviceTypeBits_LarkHvcRight, HidDeviceTypeBits_HandheldLarkHvcRight
Definition: hid.h:435
@ HidDeviceType_System20
HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadJoyDual.
Definition: hid.h:444
@ HidDeviceType_LarkNesRight
HidDeviceTypeBits_LarkNesRight, HidDeviceTypeBits_HandheldLarkNesRight
Definition: hid.h:437
@ HidDeviceType_JoyLeft2
HidDeviceTypeBits_JoyLeft
Definition: hid.h:429
@ HidDeviceType_FullKey15
HidDeviceTypeBits_FullKey
Definition: hid.h:441
@ HidDeviceType_Lager
HidDeviceTypeBits_Lager
Definition: hid.h:447
@ HidDeviceType_JoyRight1
HidDeviceTypeBits_JoyRight
Definition: hid.h:428
@ HidDeviceType_Palma
[9.0.0+] HidDeviceTypeBits_Palma
Definition: hid.h:439
@ HidDeviceType_DebugPad
HidDeviceTypeBits_DebugPad
Definition: hid.h:442
@ HidDeviceType_JoyRight5
HidDeviceTypeBits_JoyRight
Definition: hid.h:432
@ HidDeviceType_System19
HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadFullKey.
Definition: hid.h:443
@ HidDeviceType_LarkHvcLeft
HidDeviceTypeBits_LarkHvcLeft, HidDeviceTypeBits_HandheldLarkHvcLeft
Definition: hid.h:434
@ HidDeviceType_FullKey13
HidDeviceTypeBits_FullKey
Definition: hid.h:440
@ HidDeviceType_Lagon
HidDeviceTypeBits_Lagon
Definition: hid.h:446
@ HidDeviceType_LarkNesLeft
HidDeviceTypeBits_LarkNesLeft, HidDeviceTypeBits_HandheldLarkNesLeft
Definition: hid.h:436
@ HidDeviceType_System21
HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadJoyDual.
Definition: hid.h:445
@ HidDeviceType_FullKey6
HidDeviceTypeBits_FullKey
Definition: hid.h:433
@ HidDeviceType_FullKey3
HidDeviceTypeBits_FullKey
Definition: hid.h:430
Result hidSetDisallowedPalmaConnection(const BtdrvAddress *addrs, s32 count)
SetDisallowedPalmaConnection.
void hidGetNpadPowerInfoSingle(HidNpadIdType id, HidPowerInfo *info)
Gets the main HidPowerInfo for the specified Npad.
Result hidSetNpadAnalogStickUseCenterClamp(bool flag)
SetNpadAnalogStickUseCenterClamp.
HidMouseAttribute
HidMouseAttribute.
Definition: hid.h:313
@ HidMouseAttribute_Transferable
Transferable.
Definition: hid.h:314
@ HidMouseAttribute_IsConnected
IsConnected.
Definition: hid.h:315
size_t hidGetNpadStatesGc(HidNpadIdType id, HidNpadGcState *states, size_t count)
Gets HidNpadGcState.
size_t hidGetNpadStatesLucia(HidNpadIdType id, HidNpadLuciaState *states, size_t count)
Gets HidNpadLuciaState.
Result hidStartSevenSixAxisSensor(void)
Starts the SevenSixAxisSensor.
HidPalmaFrModeType
PalmaFrModeType.
Definition: hid.h:560
@ HidPalmaFrModeType_B03
B03.
Definition: hid.h:564
@ HidPalmaFrModeType_Downloaded
Downloaded.
Definition: hid.h:565
@ HidPalmaFrModeType_Off
Off.
Definition: hid.h:561
@ HidPalmaFrModeType_B01
B01.
Definition: hid.h:562
@ HidPalmaFrModeType_B02
B02.
Definition: hid.h:563
size_t hidGetGestureStates(HidGestureState *states, size_t count)
Gets HidGestureState.
void hidGetNpadSystemButtonProperties(HidNpadIdType id, HidNpadSystemButtonProperties *out)
Gets the HidNpadSystemButtonProperties for the specified Npad.
Result hidResetSixAxisSensorFusionParameters(HidSixAxisSensorHandle handle)
ResetSixAxisSensorFusionParameters.
Result hidWritePalmaActivityEntry(HidPalmaConnectionHandle handle, u16 unk, const HidPalmaActivityEntry *entry)
WritePalmaActivityEntry.
Result hidAcquireNpadStyleSetUpdateEventHandle(HidNpadIdType id, Event *out_event, bool autoclear)
Gets an Event which is signaled when the hidGetNpadStyleSet output is updated for the specified contr...
u32 hidGetNpadStyleSet(HidNpadIdType id)
Gets the StyleSet for the specified Npad.
size_t hidGetNpadStatesPalma(HidNpadIdType id, HidNpadPalmaState *states, size_t count)
Gets HidNpadPalmaState.
HidNpadAttribute
HidNpadAttribute.
Definition: hid.h:319
@ HidNpadAttribute_IsLeftConnected
IsLeftConnected.
Definition: hid.h:322
@ HidNpadAttribute_IsWired
IsWired.
Definition: hid.h:321
@ HidNpadAttribute_IsRightConnected
IsRightConnected.
Definition: hid.h:324
@ HidNpadAttribute_IsRightWired
IsRightWired.
Definition: hid.h:325
@ HidNpadAttribute_IsLeftWired
IsLeftWired.
Definition: hid.h:323
@ HidNpadAttribute_IsConnected
IsConnected.
Definition: hid.h:320
Result hidGetActualVibrationValue(HidVibrationDeviceHandle handle, HidVibrationValue *out)
Gets the current HidVibrationValue for the specified device.
Result hidReadPalmaUniqueCode(HidPalmaConnectionHandle handle)
ReadPalmaUniqueCode.
HidNpadButton
HidNpadButton.
Definition: hid.h:256
@ HidNpadButton_LagonCLeft
Left C button in N64 controller.
Definition: hid.h:288
@ HidNpadButton_StickRRight
Right Stick pseudo-button when moved Right.
Definition: hid.h:279
@ HidNpadButton_StickRDown
Right Stick pseudo-button when moved Left.
Definition: hid.h:280
@ HidNpadButton_AnySL
Bitmask containing SL buttons on both Joy-Cons (Left/Right)
Definition: hid.h:297
@ HidNpadButton_Verification
Verification.
Definition: hid.h:286
@ HidNpadButton_X
X button / Up face button.
Definition: hid.h:259
@ HidNpadButton_LagonCDown
Down C button in N64 controller.
Definition: hid.h:291
@ HidNpadButton_StickLDown
Left Stick pseudo-button when moved Down.
Definition: hid.h:276
@ HidNpadButton_Left
D-Pad Left button.
Definition: hid.h:269
@ HidNpadButton_AnyDown
Bitmask containing all buttons that are considered Down (D-Pad, Sticks)
Definition: hid.h:296
@ HidNpadButton_B
B button / Down face button.
Definition: hid.h:258
@ HidNpadButton_Y
Y button / Left face button.
Definition: hid.h:260
@ HidNpadButton_StickR
Right Stick button.
Definition: hid.h:262
@ HidNpadButton_AnySR
Bitmask containing SR buttons on both Joy-Cons (Left/Right)
Definition: hid.h:298
@ HidNpadButton_RightSL
SL button on Right Joy-Con.
Definition: hid.h:283
@ HidNpadButton_LeftSL
SL button on Left Joy-Con.
Definition: hid.h:281
@ HidNpadButton_A
A button / Right face button.
Definition: hid.h:257
@ HidNpadButton_LagonCRight
Right C button in N64 controller.
Definition: hid.h:290
@ HidNpadButton_Minus
Minus button.
Definition: hid.h:268
@ HidNpadButton_StickRUp
Right Stick pseudo-button when moved Up.
Definition: hid.h:278
@ HidNpadButton_Down
D-Pad Down button.
Definition: hid.h:272
@ HidNpadButton_Plus
Plus button.
Definition: hid.h:267
@ HidNpadButton_LagonCUp
Up C button in N64 controller.
Definition: hid.h:289
@ HidNpadButton_R
R button.
Definition: hid.h:264
@ HidNpadButton_ZL
ZL button.
Definition: hid.h:265
@ HidNpadButton_ZR
ZR button.
Definition: hid.h:266
@ HidNpadButton_Up
D-Pad Up button.
Definition: hid.h:270
@ HidNpadButton_StickL
Left Stick button.
Definition: hid.h:261
@ HidNpadButton_AnyLeft
Bitmask containing all buttons that are considered Left (D-Pad, Sticks)
Definition: hid.h:293
@ HidNpadButton_StickRLeft
Right Stick pseudo-button when moved Left.
Definition: hid.h:277
@ HidNpadButton_HandheldLeftB
B button on Left NES/HVC controller in Handheld mode.
Definition: hid.h:287
@ HidNpadButton_AnyRight
Bitmask containing all buttons that are considered Right (D-Pad, Sticks)
Definition: hid.h:295
@ HidNpadButton_L
L button.
Definition: hid.h:263
@ HidNpadButton_StickLLeft
Left Stick pseudo-button when moved Left.
Definition: hid.h:273
@ HidNpadButton_Right
D-Pad Right button.
Definition: hid.h:271
@ HidNpadButton_LeftSR
SR button on Left Joy-Con.
Definition: hid.h:282
@ HidNpadButton_RightSR
SR button on Right Joy-Con.
Definition: hid.h:284
@ HidNpadButton_AnyUp
Bitmask containing all buttons that are considered Up (D-Pad, Sticks)
Definition: hid.h:294
@ HidNpadButton_Palma
Top button on Poké Ball Plus (Palma) controller.
Definition: hid.h:285
@ HidNpadButton_StickLUp
Left Stick pseudo-button when moved Up.
Definition: hid.h:274
@ HidNpadButton_StickLRight
Left Stick pseudo-button when moved Right.
Definition: hid.h:275
Result hidIsVibrationPermitted(bool *flag)
Gets whether vibration is allowed.
Result hidGetPalmaOperationInfo(HidPalmaConnectionHandle handle, HidPalmaOperationInfo *out)
Gets HidPalmaOperationInfo for a completed operation.
Result hidResetGyroscopeZeroDriftMode(HidSixAxisSensorHandle handle)
Resets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle to HidGyroscopeZeroDriftMo...
Result hidGetVibrationDeviceInfo(HidVibrationDeviceHandle handle, HidVibrationDeviceInfo *out)
Gets HidVibrationDeviceInfo for the specified device.
size_t hidGetNpadStatesSystemExt(HidNpadIdType id, HidNpadSystemExtState *states, size_t count)
Gets HidNpadSystemExtState.
HidNpadCommonState HidNpadHandheldState
State for HidNpadStyleTag_NpadHandheld.
Definition: hid.h:791
static bool hidKeyboardStateGetKey(const HidKeyboardState *state, HidKeyboardKey key)
Gets the state of a key in a HidKeyboardState.
Definition: hid.h:1242
HidAppletFooterUiType hidGetAppletFooterUiTypes(HidNpadIdType id)
Gets HidAppletFooterUiType for the specified Npad.
Result hidSetNpadCommunicationMode(HidNpadCommunicationMode mode)
SetNpadCommunicationMode.
Result hidStopSixAxisSensor(HidSixAxisSensorHandle handle)
Stops the SixAxisSensor for the specified handle.
HidPalmaOperationType
PalmaOperationType.
Definition: hid.h:539
@ HidPalmaOperationType_WriteWaveEntry
WriteWaveEntry.
Definition: hid.h:551
@ HidPalmaOperationType_ReadDataBaseIdentificationVersion
ReadDataBaseIdentificationVersion.
Definition: hid.h:552
@ HidPalmaOperationType_WriteRgbLedPatternEntry
WriteRgbLedPatternEntry.
Definition: hid.h:550
@ HidPalmaOperationType_ReadApplicationSection
ReadApplicationSection.
Definition: hid.h:545
@ HidPalmaOperationType_WriteDataBaseIdentificationVersion
WriteDataBaseIdentificationVersion.
Definition: hid.h:553
@ HidPalmaOperationType_EnableStep
EnableStep.
Definition: hid.h:543
@ HidPalmaOperationType_ReadPlayLog
[5.1.0+] ReadPlayLog
Definition: hid.h:555
@ HidPalmaOperationType_ReadUniqueCode
ReadUniqueCode.
Definition: hid.h:547
@ HidPalmaOperationType_ResetStep
ResetStep.
Definition: hid.h:544
@ HidPalmaOperationType_SetFrModeType
SetFrModeType.
Definition: hid.h:541
@ HidPalmaOperationType_SetUniqueCodeInvalid
SetUniqueCodeInvalid.
Definition: hid.h:548
@ HidPalmaOperationType_SuspendFeature
SuspendFeature.
Definition: hid.h:554
@ HidPalmaOperationType_ReadStep
ReadStep.
Definition: hid.h:542
@ HidPalmaOperationType_WriteActivityEntry
WriteActivityEntry.
Definition: hid.h:549
@ HidPalmaOperationType_ResetPlayLog
[5.1.0+] ResetPlayLog
Definition: hid.h:556
@ HidPalmaOperationType_WriteApplicationSection
WriteApplicationSection.
Definition: hid.h:546
@ HidPalmaOperationType_PlayActivity
PlayActivity.
Definition: hid.h:540
HidNpadIdType
HID controller IDs.
Definition: hid.h:214
@ HidNpadIdType_Handheld
Handheld mode controls.
Definition: hid.h:224
@ HidNpadIdType_No6
Player 6 controller.
Definition: hid.h:220
@ HidNpadIdType_No8
Player 8 controller.
Definition: hid.h:222
@ HidNpadIdType_No5
Player 5 controller.
Definition: hid.h:219
@ HidNpadIdType_No1
Player 1 controller.
Definition: hid.h:215
@ HidNpadIdType_No2
Player 2 controller.
Definition: hid.h:216
@ HidNpadIdType_No4
Player 4 controller.
Definition: hid.h:218
@ HidNpadIdType_Other
Other controller.
Definition: hid.h:223
@ HidNpadIdType_No3
Player 3 controller.
Definition: hid.h:217
@ HidNpadIdType_No7
Player 7 controller.
Definition: hid.h:221
Result hidGetPalmaConnectionHandle(HidNpadIdType id, HidPalmaConnectionHandle *out)
GetPalmaConnectionHandle.
Result hidWritePalmaWaveEntry(HidPalmaConnectionHandle handle, HidPalmaWaveSet wave_set, u16 unk, const void *buffer, size_t tmem_size, size_t size)
WritePalmaWaveEntry.
Result hidInitializeSevenSixAxisSensor(void)
Initializes the SevenSixAxisSensor.
Result hidReadPalmaApplicationSection(HidPalmaConnectionHandle handle, s32 inval0, u64 size)
ReadPalmaApplicationSection.
Result hidResetSevenSixAxisSensorTimestamp(void)
Resets the timestamp for the SevenSixAxisSensor.
Result hidEnablePalmaBoostMode(bool flag)
EnablePalmaBoostMode.
void * hidGetSharedmemAddr(void)
Gets the address of the SharedMemory.
Result hidWritePalmaRgbLedPatternEntry(HidPalmaConnectionHandle handle, u16 unk, const void *buffer, size_t size)
WritePalmaRgbLedPatternEntry.
Service * hidGetServiceSession(void)
Gets the Service object for the actual hid service session.
Result hidGetGyroscopeZeroDriftMode(HidSixAxisSensorHandle handle, HidGyroscopeZeroDriftMode *mode)
Gets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle.
HidNpadLarkType
NpadLarkType.
Definition: hid.h:493
@ HidNpadLarkType_NL
NL.
Definition: hid.h:497
@ HidNpadLarkType_NR
NR.
Definition: hid.h:498
@ HidNpadLarkType_H1
H1.
Definition: hid.h:495
@ HidNpadLarkType_Invalid
Invalid.
Definition: hid.h:494
@ HidNpadLarkType_H2
H2.
Definition: hid.h:496
HidNpadJoyDeviceType
NpadJoyDeviceType.
Definition: hid.h:377
@ HidNpadJoyDeviceType_Right
Right.
Definition: hid.h:379
@ HidNpadJoyDeviceType_Left
Left.
Definition: hid.h:378
Result hidGetPalmaBluetoothAddress(HidPalmaConnectionHandle handle, BtdrvAddress *out)
GetPalmaBluetoothAddress.
Result hidSetIsPalmaAllConnectable(bool flag)
Sets whether any Palma can connect.
Result hidGetSupportedNpadStyleSet(u32 *style_set)
Gets which controller styles are supported.
size_t hidGetTouchScreenStates(HidTouchScreenState *states, size_t count)
Gets HidTouchScreenState.
HidNpadStyleTag
HID controller styles.
Definition: hid.h:228
@ HidNpadStyleTag_NpadLucia
SNES controller.
Definition: hid.h:238
@ HidNpadStyleTag_NpadJoyDual
Joy-Con controller in dual mode.
Definition: hid.h:231
@ HidNpadStyleTag_NpadHandheld
Joy-Con controller in handheld mode.
Definition: hid.h:230
@ HidNpadStyleTag_NpadJoyRight
Joy-Con right controller in single mode.
Definition: hid.h:233
@ HidNpadStyleTag_NpadGc
GameCube controller.
Definition: hid.h:234
@ HidNpadStyleTag_NpadPalma
Poké Ball Plus controller.
Definition: hid.h:235
@ HidNpadStyleTag_NpadLark
NES/Famicom controller.
Definition: hid.h:236
@ HidNpadStyleTag_NpadLager
Sega Genesis controller.
Definition: hid.h:240
@ HidNpadStyleSet_NpadFullCtrl
Style set comprising Npad styles containing the full set of controls {FullKey, Handheld,...
Definition: hid.h:244
@ HidNpadStyleTag_NpadLagon
N64 controller.
Definition: hid.h:239
@ HidNpadStyleTag_NpadSystemExt
Generic external controller.
Definition: hid.h:241
@ HidNpadStyleTag_NpadHandheldLark
NES/Famicom controller in handheld mode.
Definition: hid.h:237
@ HidNpadStyleSet_NpadStandard
Style set comprising all standard Npad styles {FullKey, Handheld, JoyDual, JoyLeft,...
Definition: hid.h:245
@ HidNpadStyleTag_NpadJoyLeft
Joy-Con left controller in single mode.
Definition: hid.h:232
@ HidNpadStyleTag_NpadSystem
Generic controller.
Definition: hid.h:242
@ HidNpadStyleTag_NpadFullKey
Pro Controller.
Definition: hid.h:229
Result hidEndPermitVibrationSession(void)
Ends the session started by hidBeginPermitVibrationSession.
HidNpadCommunicationMode
NpadCommunicationMode.
Definition: hid.h:396
@ HidNpadCommunicationMode_10ms
10ms
Definition: hid.h:398
@ HidNpadCommunicationMode_15ms
15ms
Definition: hid.h:399
@ HidNpadCommunicationMode_Default
Default.
Definition: hid.h:400
@ HidNpadCommunicationMode_5ms
5ms
Definition: hid.h:397
Result hidSendKeyboardLockKeyEvent(u32 events)
SendKeyboardLockKeyEvent.
Result hidSetNpadJoyAssignmentModeSingleWithDestination(HidNpadIdType id, HidNpadJoyDeviceType type, bool *flag, HidNpadIdType *dest)
Use this if you want to use a single joy-con as a dedicated HidNpadIdType_No*.
HidNpadCommonState HidNpadSystemExtState
State for HidNpadStyleTag_NpadSystemExt.
Definition: hid.h:844
void hidExit(void)
Exit hid. Called automatically during app exit.
Result hidSendVibrationValue(HidVibrationDeviceHandle handle, const HidVibrationValue *value)
Sends the HidVibrationDeviceHandle to the specified device.
Result hidGetSevenSixAxisSensorFusionStrength(float *strength)
Gets the SevenSixAxisSensor FusionStrength.
size_t hidGetNpadStatesLager(HidNpadIdType id, HidNpadLagerState *states, size_t count)
Gets HidNpadLagerState.
Result hidSetSupportedNpadStyleSet(u32 style_set)
Sets which controller styles are supported.
void hidInitializeMouse(void)
Initialize Mouse. Must be called when Mouse is being used. Used automatically by hidScanInput when re...
HidNpadCommonState HidNpadLagerState
State for HidNpadStyleTag_NpadLager. Analog-sticks state are always zero.
Definition: hid.h:842
Result hidGetNpadInterfaceType(HidNpadIdType id, u8 *out)
Gets the HidNpadInterfaceType for the specified controller.
Result hidGetPlayerLedPattern(HidNpadIdType id, u8 *out)
GetPlayerLedPattern.
HidNpadJoyHoldType
NpadJoyHoldType.
Definition: hid.h:371
@ HidNpadJoyHoldType_Horizontal
Joy-Con held horizontally.
Definition: hid.h:373
@ HidNpadJoyHoldType_Vertical
Default / Joy-Con held vertically.
Definition: hid.h:372
Result hidPairPalma(HidPalmaConnectionHandle handle)
PairPalma.
Result hidCancelWritePalmaWaveEntry(HidPalmaConnectionHandle handle)
CancelWritePalmaWaveEntry.
HidNpadLuciaType
NpadLuciaType.
Definition: hid.h:502
@ HidNpadLuciaType_J
J.
Definition: hid.h:504
@ HidNpadLuciaType_Invalid
Invalid.
Definition: hid.h:503
@ HidNpadLuciaType_E
E.
Definition: hid.h:505
@ HidNpadLuciaType_U
U.
Definition: hid.h:506
Result hidSetNpadHandheldActivationMode(HidNpadHandheldActivationMode mode)
Sets the HidNpadHandheldActivationMode.
HidNpadHandheldActivationMode
This controls how many Joy-Cons must be attached for handheld-mode to be activated.
Definition: hid.h:383
@ HidNpadHandheldActivationMode_None
None (0 Joy-Cons)
Definition: hid.h:386
@ HidNpadHandheldActivationMode_Dual
Dual (2 Joy-Cons)
Definition: hid.h:384
@ HidNpadHandheldActivationMode_Single
Single (1 Joy-Con)
Definition: hid.h:385
HidVibrationDevicePosition
VibrationDevicePosition.
Definition: hid.h:525
@ HidVibrationDevicePosition_Right
Right.
Definition: hid.h:528
@ HidVibrationDevicePosition_Left
Left.
Definition: hid.h:527
@ HidVibrationDevicePosition_None
None.
Definition: hid.h:526
Result hidPermitVibration(bool flag)
Sets whether vibration is allowed, this also affects the config displayed by System Settings.
Result hidSuspendPalmaFeature(HidPalmaConnectionHandle handle, u32 features)
SuspendPalmaFeature.
Result hidGetActualVibrationGcErmCommand(HidVibrationDeviceHandle handle, HidVibrationGcErmCommand *out)
Get HidVibrationGcErmCommand for the specified device, for HidVibrationDeviceType_GcErm.
Result hidEnableUsbFullKeyController(bool flag)
EnableUsbFullKeyController.
Result hidIsUsbFullKeyControllerEnabled(bool *out)
IsUsbFullKeyControllerEnabled.
size_t hidGetNpadStatesFullKey(HidNpadIdType id, HidNpadFullKeyState *states, size_t count)
Gets HidNpadFullKeyState.
void hidInitializeTouchScreen(void)
Initialize TouchScreen. Must be called when TouchScreen is being used. Used automatically by hidScanI...
Result hidInitializeVibrationDevices(HidVibrationDeviceHandle *handles, s32 total_handles, HidNpadIdType id, HidNpadStyleTag style)
Gets and initializes vibration handles.
Result hidIsSixAxisSensorAtRest(HidSixAxisSensorHandle handle, bool *out)
IsSixAxisSensorAtRest.
Result hidSetSupportedNpadIdType(const HidNpadIdType *ids, size_t count)
Sets which HidNpadIdType are supported.
size_t hidGetNpadStatesJoyRight(HidNpadIdType id, HidNpadJoyRightState *states, size_t count)
Gets HidNpadJoyRightState.
Result hidGetNpadOfHighestBatteryLevel(const HidNpadIdType *ids, size_t count, HidNpadIdType *out)
GetNpadOfHighestBatteryLevel.
HidPalmaWaveSet
PalmaWaveSet.
Definition: hid.h:569
@ HidPalmaWaveSet_Large
Large.
Definition: hid.h:572
@ HidPalmaWaveSet_Small
Small.
Definition: hid.h:570
@ HidPalmaWaveSet_Medium
Medium.
Definition: hid.h:571
XcdInterfaceType
XcdInterfaceType.
Definition: hid.h:485
Result hidGetSixAxisSensorFusionParameters(HidSixAxisSensorHandle handle, float *unk0, float *unk1)
GetSixAxisSensorFusionParameters.
Result hidGetNpadJoyHoldType(HidNpadJoyHoldType *type)
Gets the HidNpadJoyHoldType.
Result hidWritePalmaApplicationSection(HidPalmaConnectionHandle handle, s32 inval0, u64 size, const HidPalmaApplicationSectionAccessBuffer *buf)
WritePalmaApplicationSection.
Result hidStopLrAssignmentMode(void)
StopLrAssignmentMode.
Address.
Definition: btdrv_types.h:214
Kernel-mode event structure.
Definition: event.h:13
HidAnalogStickState.
Definition: hid.h:584
s32 x
X.
Definition: hid.h:585
s32 y
Y.
Definition: hid.h:586
HidConsoleSixAxisSensor.
Definition: hid.h:1068
float verticalization_error
VerticalizationError.
Definition: hid.h:1072
UtilFloat3 gyro_bias
GyroBias.
Definition: hid.h:1073
u8 is_seven_six_axis_sensor_at_rest
IsSevenSixAxisSensorAtRest.
Definition: hid.h:1070
u64 sampling_number
SamplingNumber.
Definition: hid.h:1069
HidDebugPadLifo.
Definition: hid.h:632
HidCommonLifoHeader header
HidCommonLifoHeader
Definition: hid.h:633
HidDebugPadStateAtomicStorage storage[17]
HidDebugPadStateAtomicStorage
Definition: hid.h:634
HidDebugPadStateAtomicStorage.
Definition: hid.h:626
u64 sampling_number
SamplingNumber.
Definition: hid.h:627
HidDebugPadState state
HidDebugPadState
Definition: hid.h:628
HidDebugPadState.
Definition: hid.h:617
HidAnalogStickState analog_stick_r
AnalogStickR.
Definition: hid.h:621
u64 sampling_number
SamplingNumber.
Definition: hid.h:618
HidAnalogStickState analog_stick_l
AnalogStickL.
Definition: hid.h:622
u32 attributes
Bitfield of HidDebugPadAttribute.
Definition: hid.h:619
u32 buttons
Bitfield of HidDebugPadButton.
Definition: hid.h:620
HidDirectionState.
Definition: hid.h:597
float direction[3][3]
3x3 matrix
Definition: hid.h:598
HidGestureDummyStateAtomicStorage.
Definition: hid.h:1048
u64 sampling_number
SamplingNumber.
Definition: hid.h:1049
HidGestureLifo.
Definition: hid.h:1054
HidGesturePoint.
Definition: hid.h:1023
u32 y
Y.
Definition: hid.h:1025
u32 x
X.
Definition: hid.h:1024
HidGestureState.
Definition: hid.h:1029
float rotation_angle
RotationAngle.
Definition: hid.h:1042
float velocity_x
VelocityX.
Definition: hid.h:1038
u32 attributes
Bitfield of HidGestureAttribute.
Definition: hid.h:1040
u64 sampling_number
SamplingNumber.
Definition: hid.h:1030
float velocity_y
VelocityY.
Definition: hid.h:1039
u32 direction
HidGestureDirection
Definition: hid.h:1033
s32 point_count
Number of entries in the points array.
Definition: hid.h:1043
u32 y
Y.
Definition: hid.h:1035
float scale
Scale.
Definition: hid.h:1041
s32 delta_y
DeltaY.
Definition: hid.h:1037
u32 type
HidGestureType
Definition: hid.h:1032
s32 delta_x
DeltaX.
Definition: hid.h:1036
u64 context_number
ContextNumber.
Definition: hid.h:1031
HidGesturePoint points[4]
Array of HidGesturePoint with the above count.
Definition: hid.h:1044
u32 x
X.
Definition: hid.h:1034
HidKeyboardLifo.
Definition: hid.h:745
HidKeyboardStateAtomicStorage.
Definition: hid.h:739
u64 sampling_number
SamplingNumber.
Definition: hid.h:740
HidKeyboardState.
Definition: hid.h:732
u64 modifiers
Bitfield of HidKeyboardModifier.
Definition: hid.h:734
u64 sampling_number
SamplingNumber.
Definition: hid.h:733
HidMouseLifo.
Definition: hid.h:716
HidMouseStateAtomicStorage.
Definition: hid.h:710
u64 sampling_number
SamplingNumber.
Definition: hid.h:711
HidMouseState.
Definition: hid.h:697
u32 attributes
Bitfield of HidMouseAttribute.
Definition: hid.h:706
u32 buttons
Bitfield of HidMouseButton.
Definition: hid.h:705
s32 delta_x
DeltaX.
Definition: hid.h:701
s32 y
Y.
Definition: hid.h:700
s32 wheel_delta_y
WheelDeltaY.
Definition: hid.h:704
s32 delta_y
DeltaY.
Definition: hid.h:702
s32 x
X.
Definition: hid.h:699
s32 wheel_delta_x
WheelDeltaX.
Definition: hid.h:703
u64 sampling_number
SamplingNumber.
Definition: hid.h:698
HidNfcXcdDeviceHandleStateImplAtomicStorage.
Definition: hid.h:950
u64 sampling_number
SamplingNumber.
Definition: hid.h:951
HidNfcXcdDeviceHandleStateImpl state
HidNfcXcdDeviceHandleStateImpl
Definition: hid.h:952
HidNfcXcdDeviceHandleStateImpl.
Definition: hid.h:941
u64 sampling_number
SamplingNumber.
Definition: hid.h:946
HidNfcXcdDeviceHandleState.
Definition: hid.h:956
HidNpadCommonLifo.
Definition: hid.h:854
HidNpadCommonStateAtomicStorage.
Definition: hid.h:848
u64 sampling_number
SamplingNumber.
Definition: hid.h:849
HidNpadCommonState.
Definition: hid.h:781
u64 sampling_number
SamplingNumber.
Definition: hid.h:782
HidAnalogStickState analog_stick_l
AnalogStickL.
Definition: hid.h:784
u32 reserved
Reserved.
Definition: hid.h:787
u32 attributes
Bitfield of HidNpadAttribute.
Definition: hid.h:786
HidAnalogStickState analog_stick_r
AnalogStickR.
Definition: hid.h:785
u64 buttons
Bitfield of HidNpadButton.
Definition: hid.h:783
Npad colors.
Definition: hid.h:762
u32 main
RGBA Body Color.
Definition: hid.h:763
u32 sub
RGBA Buttons Color.
Definition: hid.h:764
HidNpadFullKeyColorState.
Definition: hid.h:768
HidNpadControllerColor full_key
HidNpadControllerColor FullKey
Definition: hid.h:770
u32 attribute
HidColorAttribute
Definition: hid.h:769
State for HidNpadStyleTag_NpadGc. Loaded from the same lifo as HidNpadFullKeyState,...
Definition: hid.h:797
u64 sampling_number
SamplingNumber.
Definition: hid.h:798
u32 trigger_l
L analog trigger. Valid range: 0x0-0x7FFF.
Definition: hid.h:803
HidAnalogStickState analog_stick_r
AnalogStickR.
Definition: hid.h:801
u64 buttons
Bitfield of HidNpadButton.
Definition: hid.h:799
u32 attributes
Bitfield of HidNpadAttribute.
Definition: hid.h:802
HidAnalogStickState analog_stick_l
AnalogStickL.
Definition: hid.h:800
u32 trigger_r
R analog trigger. Valid range: 0x0-0x7FFF.
Definition: hid.h:804
HidNpadGcTriggerLifo.
Definition: hid.h:873
HidNpadGcTriggerStateAtomicStorage.
Definition: hid.h:867
u64 sampling_number
SamplingNumber.
Definition: hid.h:868
HidNpadGcTriggerState.
Definition: hid.h:860
u64 sampling_number
SamplingNumber.
Definition: hid.h:861
State for HidNpadStyleTag_NpadHandheldLark. The base state is loaded from the same lifo as HidNpadHan...
Definition: hid.h:821
u64 buttons
Bitfield of HidNpadButton.
Definition: hid.h:823
HidAnalogStickState analog_stick_r
AnalogStickR.
Definition: hid.h:825
HidAnalogStickState analog_stick_l
AnalogStickL.
Definition: hid.h:824
u64 sampling_number
SamplingNumber.
Definition: hid.h:822
HidNpadLarkType lark_type_r
HidNpadLarkType LarkTypeR
Definition: hid.h:828
HidNpadLarkType lark_type_l_and_main
HidNpadLarkType LarkTypeLAndMain
Definition: hid.h:827
u32 attributes
Bitfield of HidNpadAttribute.
Definition: hid.h:826
HidNpadInternalState.
Definition: hid.h:962
u32 reserved
Reserved.
Definition: hid.h:984
HidNpadSixAxisSensorLifo joy_dual_right_six_axis_sensor_lifo
JoyDualRightSixAxisSensorLifo.
Definition: hid.h:979
u32 style_set
Bitfield of HidNpadStyleTag.
Definition: hid.h:963
HidNpadCommonLifo joy_dual_lifo
JoyDualLifo.
Definition: hid.h:970
HidNpadCommonLifo palma_lifo
PalmaLifo.
Definition: hid.h:973
HidNpadJoyColorState joy_color
HidNpadJoyColorState
Definition: hid.h:966
HidNpadFullKeyColorState full_key_color
HidNpadFullKeyColorState
Definition: hid.h:965
HidNpadCommonLifo system_ext_lifo
SystemExtLifo.
Definition: hid.h:974
u8 reserved_x4208[0x20]
Mutex on pre-10.0.0.
Definition: hid.h:999
u8 applet_footer_ui_type
HidAppletFooterUiType
Definition: hid.h:995
u32 joy_assignment_mode
HidNpadJoyAssignmentMode
Definition: hid.h:964
u32 applet_footer_ui_attribute
Bitfield of AppletFooterUiAttribute.
Definition: hid.h:994
u32 lager_type
HidNpadLagerType
Definition: hid.h:1004
HidNpadCommonLifo full_key_lifo
FullKeyLifo.
Definition: hid.h:968
HidNpadCommonLifo handheld_lifo
HandheldLifo.
Definition: hid.h:969
u32 lucia_type
HidNpadLuciaType
Definition: hid.h:1003
HidNpadSixAxisSensorLifo joy_left_six_axis_sensor_lifo
JoyLeftSixAxisSensorLifo.
Definition: hid.h:980
HidNpadSixAxisSensorLifo full_key_six_axis_sensor_lifo
FullKeySixAxisSensorLifo.
Definition: hid.h:976
u32 lark_type_l_and_main
HidNpadLarkType
Definition: hid.h:1001
HidNpadSixAxisSensorLifo handheld_six_axis_sensor_lifo
HandheldSixAxisSensorLifo.
Definition: hid.h:977
u32 lark_type_r
HidNpadLarkType
Definition: hid.h:1002
HidNpadSixAxisSensorLifo joy_dual_left_six_axis_sensor_lifo
JoyDualLeftSixAxisSensorLifo.
Definition: hid.h:978
HidNpadSixAxisSensorLifo joy_right_six_axis_sensor_lifo
JoyRightSixAxisSensorLifo.
Definition: hid.h:981
HidNpadCommonLifo joy_right_lifo
JoyRightLifo.
Definition: hid.h:972
HidNpadCommonLifo joy_left_lifo
JoyLeftLifo.
Definition: hid.h:971
u32 device_type
Bitfield of HidDeviceTypeBits.
Definition: hid.h:983
HidNpadJoyColorState.
Definition: hid.h:774
u32 attribute
HidColorAttribute
Definition: hid.h:775
HidNpadControllerColor left
HidNpadControllerColor Left
Definition: hid.h:776
HidNpadControllerColor right
HidNpadControllerColor Right
Definition: hid.h:777
State for HidNpadStyleTag_NpadLark. The base state is loaded from the same lifo as HidNpadFullKeyStat...
Definition: hid.h:811
HidNpadLarkType lark_type_l_and_main
HidNpadLarkType LarkTypeLAndMain
Definition: hid.h:817
u64 sampling_number
SamplingNumber.
Definition: hid.h:812
u64 buttons
Bitfield of HidNpadButton.
Definition: hid.h:813
HidAnalogStickState analog_stick_l
This is always zero.
Definition: hid.h:814
u32 attributes
Bitfield of HidNpadAttribute.
Definition: hid.h:816
HidAnalogStickState analog_stick_r
This is always zero.
Definition: hid.h:815
State for HidNpadStyleTag_NpadLucia. The base state is loaded from the same lifo as HidNpadFullKeySta...
Definition: hid.h:833
HidAnalogStickState analog_stick_r
This is always zero.
Definition: hid.h:837
u32 attributes
Bitfield of HidNpadAttribute.
Definition: hid.h:838
HidAnalogStickState analog_stick_l
This is always zero.
Definition: hid.h:836
u64 buttons
Bitfield of HidNpadButton.
Definition: hid.h:835
HidNpadLuciaType lucia_type
HidNpadLuciaType
Definition: hid.h:839
u64 sampling_number
SamplingNumber.
Definition: hid.h:834
HidNpadSharedMemoryEntry.
Definition: hid.h:1008
HidNpadSixAxisSensorLifo.
Definition: hid.h:897
NpadSystemProperties.
Definition: hid.h:903
u64 is_abxy_button_oriented
IsAbxyButtonOriented.
Definition: hid.h:913
u64 is_directional_buttons_available
[8.0.0+] IsDirectionalButtonsAvailable
Definition: hid.h:917
u64 bit6
Unused.
Definition: hid.h:907
u64 bit8
Unused.
Definition: hid.h:909
u64 is_plus_available
[4.0.0+] IsPlusAvailable
Definition: hid.h:915
u64 is_powered
Use hidGetNpadPowerInfoSingle / hidGetNpadPowerInfoSplit instead of accessing this directly.
Definition: hid.h:905
u64 is_charging
Use hidGetNpadPowerInfoSingle / hidGetNpadPowerInfoSplit instead of accessing this directly.
Definition: hid.h:904
u64 is_unsupported_button_pressed_on_npad_system
IsUnsupportedButtonPressedOnNpadSystem.
Definition: hid.h:910
u64 bit7
Unused.
Definition: hid.h:908
u64 is_sl_sr_button_oriented
IsSlSrButtonOriented.
Definition: hid.h:914
u64 unused
Unused.
Definition: hid.h:919
u64 is_unsupported_button_pressed_on_npad_system_ext
IsUnsupportedButtonPressedOnNpadSystemExt.
Definition: hid.h:911
u64 is_minus_available
[4.0.0+] IsMinusAvailable
Definition: hid.h:916
PalmaActivityEntry.
Definition: hid.h:1171
u16 rgb_led_pattern_index
RgbLedPatternIndex.
Definition: hid.h:1172
u16 wave_index
WaveIndex.
Definition: hid.h:1175
u16 pad
Padding.
Definition: hid.h:1173
u32 wave_set
HidPalmaWaveSet
Definition: hid.h:1174
PalmaApplicationSectionAccessBuffer.
Definition: hid.h:1166
u8 data[0x100]
Application data.
Definition: hid.h:1167
PalmaConnectionHandle.
Definition: hid.h:1154
u64 handle
Handle.
Definition: hid.h:1155
PalmaOperationInfo.
Definition: hid.h:1159
Result res
Result.
Definition: hid.h:1161
u32 type
HidPalmaOperationType
Definition: hid.h:1160
u8 data[0x140]
Data.
Definition: hid.h:1162
HidPowerInfo (system)
Definition: hid.h:928
bool is_charging
IsCharging.
Definition: hid.h:930
u32 battery_level
BatteryLevel, always 0-4.
Definition: hid.h:932
bool is_powered
IsPowered.
Definition: hid.h:929
HidSevenSixAxisSensorStateEntry.
Definition: hid.h:1105
HidSevenSixAxisSensorState.
Definition: hid.h:1096
HidSevenSixAxisSensorStates.
Definition: hid.h:1112
HidSharedMemory.
Definition: hid.h:1078
HidConsoleSixAxisSensor console_six_axis_sensor
[5.0.0+] ConsoleSixAxisSensor
Definition: hid.h:1091
u8 digitizer[0x1000]
[10.0.0+] Digitizer [1.0.0-9.2.0] BasicXpad
Definition: hid.h:1083
u8 unique_pad[0x4000]
[1.0.0-4.1.0] UniquePad
Definition: hid.h:1088
HidSixAxisSensorStateAtomicStorage.
Definition: hid.h:891
u64 sampling_number
SamplingNumber.
Definition: hid.h:892
HidSixAxisSensorState.
Definition: hid.h:879
u32 reserved
Reserved.
Definition: hid.h:887
HidDirectionState direction
Direction.
Definition: hid.h:885
u64 sampling_number
SamplingNumber.
Definition: hid.h:881
HidVector angle
Angle.
Definition: hid.h:884
u64 delta_time
DeltaTime.
Definition: hid.h:880
u32 attributes
Bitfield of HidSixAxisSensorAttribute.
Definition: hid.h:886
HidVector angular_velocity
AngularVelocity.
Definition: hid.h:883
HidVector acceleration
Acceleration.
Definition: hid.h:882
HidTouchScreenConfigurationForNx.
Definition: hid.h:687
u8 mode
HidTouchScreenModeForNx
Definition: hid.h:688
HidTouchScreenLifo.
Definition: hid.h:675
HidTouchScreenStateAtomicStorage storage[17]
HidTouchScreenStateAtomicStorage
Definition: hid.h:677
HidCommonLifoHeader header
HidCommonLifoHeader
Definition: hid.h:676
HidTouchScreenStateAtomicStorage.
Definition: hid.h:669
HidTouchScreenState state
HidTouchScreenState
Definition: hid.h:671
u64 sampling_number
SamplingNumber.
Definition: hid.h:670
HidTouchScreenState.
Definition: hid.h:661
u64 sampling_number
SamplingNumber.
Definition: hid.h:662
HidTouchState touches[16]
Array of HidTouchState, with the above count.
Definition: hid.h:665
u32 reserved
Reserved.
Definition: hid.h:664
s32 count
Number of entries in the touches array.
Definition: hid.h:663
HidTouchState.
Definition: hid.h:648
u32 reserved
Reserved.
Definition: hid.h:657
u32 attributes
Bitfield of HidTouchAttribute.
Definition: hid.h:650
u32 diameter_y
DiameterY.
Definition: hid.h:655
u32 y
Y.
Definition: hid.h:653
u32 rotation_angle
RotationAngle.
Definition: hid.h:656
u32 diameter_x
DiameterX.
Definition: hid.h:654
u32 finger_id
FingerId.
Definition: hid.h:651
u64 delta_time
DeltaTime.
Definition: hid.h:649
u32 x
X.
Definition: hid.h:652
HidVector.
Definition: hid.h:590
HidVibrationDeviceInfo.
Definition: hid.h:1140
u32 type
HidVibrationDeviceType
Definition: hid.h:1141
u32 position
HidVibrationDevicePosition
Definition: hid.h:1142
HidVibrationValue.
Definition: hid.h:1146
float amp_low
Low Band amplitude. 1.0f: Max amplitude.
Definition: hid.h:1147
float freq_high
High Band frequency in Hz.
Definition: hid.h:1150
float freq_low
Low Band frequency in Hz.
Definition: hid.h:1148
float amp_high
High Band amplitude. 1.0f: Max amplitude.
Definition: hid.h:1149
Service object structure.
Definition: service.h:14
XcdDeviceHandle.
Definition: hid.h:936
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition: types.h:92
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
HidSixAxisSensorHandle.
Definition: hid.h:1118
u32 device_idx
DeviceIdx.
Definition: hid.h:1123
u32 npad_style_index
NpadStyleIndex.
Definition: hid.h:1121
u32 type_value
TypeValue.
Definition: hid.h:1119
u32 player_number
PlayerNumber.
Definition: hid.h:1122
u32 pad
Padding.
Definition: hid.h:1124
HidVibrationDeviceHandle.
Definition: hid.h:1129
u32 type_value
TypeValue.
Definition: hid.h:1130
u32 npad_style_index
NpadStyleIndex.
Definition: hid.h:1132
u32 device_idx
DeviceIdx.
Definition: hid.h:1134
u32 pad
Padding.
Definition: hid.h:1135
u32 player_number
PlayerNumber.
Definition: hid.h:1133