libnx
v4.7.0
|
Human input device (hid) service IPC wrapper. More...
#include "../types.h"
#include "../kernel/event.h"
#include "../services/btdrv_types.h"
#include "../sf/service.h"
Go to the source code of this file.
Macros | |
#define | JOYSTICK_MAX (0x7FFF) |
#define | JOYSTICK_MIN (-0x7FFF) |
Enumerations | |
enum | HidDebugPadButton { HidDebugPadButton_A = (1U<<( 0 )) , HidDebugPadButton_B = (1U<<( 1 )) , HidDebugPadButton_X = (1U<<( 2 )) , HidDebugPadButton_Y = (1U<<( 3 )) , HidDebugPadButton_L = (1U<<( 4 )) , HidDebugPadButton_R = (1U<<( 5 )) , HidDebugPadButton_ZL = (1U<<( 6 )) , HidDebugPadButton_ZR = (1U<<( 7 )) , HidDebugPadButton_Start = (1U<<( 8 )) , HidDebugPadButton_Select = (1U<<( 9 )) , HidDebugPadButton_Left = (1U<<( 10 )) , HidDebugPadButton_Up = (1U<<( 11 )) , HidDebugPadButton_Right = (1U<<( 12 )) , HidDebugPadButton_Down = (1U<<( 13 )) } |
HidDebugPadButton. More... | |
enum | HidTouchScreenModeForNx { HidTouchScreenModeForNx_UseSystemSetting = 0 , HidTouchScreenModeForNx_Finger = 1 , HidTouchScreenModeForNx_Heat2 = 2 } |
HidTouchScreenModeForNx. More... | |
enum | HidMouseButton { HidMouseButton_Left = (1U<<( 0 )) , HidMouseButton_Right = (1U<<( 1 )) , HidMouseButton_Middle = (1U<<( 2 )) , HidMouseButton_Forward = (1U<<( 3 )) , HidMouseButton_Back = (1U<<( 4 )) } |
HidMouseButton. | |
enum | HidKeyboardKey { HidKeyboardKey_A = 4 , HidKeyboardKey_B = 5 , HidKeyboardKey_C = 6 , HidKeyboardKey_D = 7 , HidKeyboardKey_E = 8 , HidKeyboardKey_F = 9 , HidKeyboardKey_G = 10 , HidKeyboardKey_H = 11 , HidKeyboardKey_I = 12 , HidKeyboardKey_J = 13 , HidKeyboardKey_K = 14 , HidKeyboardKey_L = 15 , HidKeyboardKey_M = 16 , HidKeyboardKey_N = 17 , HidKeyboardKey_O = 18 , HidKeyboardKey_P = 19 , HidKeyboardKey_Q = 20 , HidKeyboardKey_R = 21 , HidKeyboardKey_S = 22 , HidKeyboardKey_T = 23 , HidKeyboardKey_U = 24 , HidKeyboardKey_V = 25 , HidKeyboardKey_W = 26 , HidKeyboardKey_X = 27 , HidKeyboardKey_Y = 28 , HidKeyboardKey_Z = 29 , HidKeyboardKey_D1 = 30 , HidKeyboardKey_D2 = 31 , HidKeyboardKey_D3 = 32 , HidKeyboardKey_D4 = 33 , HidKeyboardKey_D5 = 34 , HidKeyboardKey_D6 = 35 , HidKeyboardKey_D7 = 36 , HidKeyboardKey_D8 = 37 , HidKeyboardKey_D9 = 38 , HidKeyboardKey_D0 = 39 , HidKeyboardKey_Return = 40 , HidKeyboardKey_Escape = 41 , HidKeyboardKey_Backspace = 42 , HidKeyboardKey_Tab = 43 , HidKeyboardKey_Space = 44 , HidKeyboardKey_Minus = 45 , HidKeyboardKey_Plus = 46 , HidKeyboardKey_OpenBracket = 47 , HidKeyboardKey_CloseBracket = 48 , HidKeyboardKey_Pipe = 49 , HidKeyboardKey_Tilde = 50 , HidKeyboardKey_Semicolon = 51 , HidKeyboardKey_Quote = 52 , HidKeyboardKey_Backquote = 53 , HidKeyboardKey_Comma = 54 , HidKeyboardKey_Period = 55 , HidKeyboardKey_Slash = 56 , HidKeyboardKey_CapsLock = 57 , HidKeyboardKey_F1 = 58 , HidKeyboardKey_F2 = 59 , HidKeyboardKey_F3 = 60 , HidKeyboardKey_F4 = 61 , HidKeyboardKey_F5 = 62 , HidKeyboardKey_F6 = 63 , HidKeyboardKey_F7 = 64 , HidKeyboardKey_F8 = 65 , HidKeyboardKey_F9 = 66 , HidKeyboardKey_F10 = 67 , HidKeyboardKey_F11 = 68 , HidKeyboardKey_F12 = 69 , HidKeyboardKey_PrintScreen = 70 , HidKeyboardKey_ScrollLock = 71 , HidKeyboardKey_Pause = 72 , HidKeyboardKey_Insert = 73 , HidKeyboardKey_Home = 74 , HidKeyboardKey_PageUp = 75 , HidKeyboardKey_Delete = 76 , HidKeyboardKey_End = 77 , HidKeyboardKey_PageDown = 78 , HidKeyboardKey_RightArrow = 79 , HidKeyboardKey_LeftArrow = 80 , HidKeyboardKey_DownArrow = 81 , HidKeyboardKey_UpArrow = 82 , HidKeyboardKey_NumLock = 83 , HidKeyboardKey_NumPadDivide = 84 , HidKeyboardKey_NumPadMultiply = 85 , HidKeyboardKey_NumPadSubtract = 86 , HidKeyboardKey_NumPadAdd = 87 , HidKeyboardKey_NumPadEnter = 88 , HidKeyboardKey_NumPad1 = 89 , HidKeyboardKey_NumPad2 = 90 , HidKeyboardKey_NumPad3 = 91 , HidKeyboardKey_NumPad4 = 92 , HidKeyboardKey_NumPad5 = 93 , HidKeyboardKey_NumPad6 = 94 , HidKeyboardKey_NumPad7 = 95 , HidKeyboardKey_NumPad8 = 96 , HidKeyboardKey_NumPad9 = 97 , HidKeyboardKey_NumPad0 = 98 , HidKeyboardKey_NumPadDot = 99 , HidKeyboardKey_Backslash = 100 , HidKeyboardKey_Application = 101 , HidKeyboardKey_Power = 102 , HidKeyboardKey_NumPadEquals = 103 , HidKeyboardKey_F13 = 104 , HidKeyboardKey_F14 = 105 , HidKeyboardKey_F15 = 106 , HidKeyboardKey_F16 = 107 , HidKeyboardKey_F17 = 108 , HidKeyboardKey_F18 = 109 , HidKeyboardKey_F19 = 110 , HidKeyboardKey_F20 = 111 , HidKeyboardKey_F21 = 112 , HidKeyboardKey_F22 = 113 , HidKeyboardKey_F23 = 114 , HidKeyboardKey_F24 = 115 , HidKeyboardKey_NumPadComma = 133 , HidKeyboardKey_Ro = 135 , HidKeyboardKey_KatakanaHiragana = 136 , HidKeyboardKey_Yen = 137 , HidKeyboardKey_Henkan = 138 , HidKeyboardKey_Muhenkan = 139 , HidKeyboardKey_NumPadCommaPc98 = 140 , HidKeyboardKey_HangulEnglish = 144 , HidKeyboardKey_Hanja = 145 , HidKeyboardKey_Katakana = 146 , HidKeyboardKey_Hiragana = 147 , HidKeyboardKey_ZenkakuHankaku = 148 , HidKeyboardKey_LeftControl = 224 , HidKeyboardKey_LeftShift = 225 , HidKeyboardKey_LeftAlt = 226 , HidKeyboardKey_LeftGui = 227 , HidKeyboardKey_RightControl = 228 , HidKeyboardKey_RightShift = 229 , HidKeyboardKey_RightAlt = 230 , HidKeyboardKey_RightGui = 231 } |
HidKeyboardKey. | |
enum | HidKeyboardModifier { HidKeyboardModifier_Control = (1U<<( 0 )) , HidKeyboardModifier_Shift = (1U<<( 1 )) , HidKeyboardModifier_LeftAlt = (1U<<( 2 )) , HidKeyboardModifier_RightAlt = (1U<<( 3 )) , HidKeyboardModifier_Gui = (1U<<( 4 )) , HidKeyboardModifier_CapsLock = (1U<<( 8 )) , HidKeyboardModifier_ScrollLock = (1U<<( 9 )) , HidKeyboardModifier_NumLock = (1U<<( 10 )) , HidKeyboardModifier_Katakana = (1U<<( 11 )) , HidKeyboardModifier_Hiragana = (1U<<( 12 )) } |
HidKeyboardModifier. | |
enum | HidKeyboardLockKeyEvent { HidKeyboardLockKeyEvent_NumLockOn = (1U<<( 0 )) , HidKeyboardLockKeyEvent_NumLockOff = (1U<<( 1 )) , HidKeyboardLockKeyEvent_NumLockToggle = (1U<<( 2 )) , HidKeyboardLockKeyEvent_CapsLockOn = (1U<<( 3 )) , HidKeyboardLockKeyEvent_CapsLockOff = (1U<<( 4 )) , HidKeyboardLockKeyEvent_CapsLockToggle = (1U<<( 5 )) , HidKeyboardLockKeyEvent_ScrollLockOn = (1U<<( 6 )) , HidKeyboardLockKeyEvent_ScrollLockOff = (1U<<( 7 )) , HidKeyboardLockKeyEvent_ScrollLockToggle = (1U<<( 8 )) } |
KeyboardLockKeyEvent. More... | |
enum | HidNpadIdType { HidNpadIdType_No1 = 0 , HidNpadIdType_No2 = 1 , HidNpadIdType_No3 = 2 , HidNpadIdType_No4 = 3 , HidNpadIdType_No5 = 4 , HidNpadIdType_No6 = 5 , HidNpadIdType_No7 = 6 , HidNpadIdType_No8 = 7 , HidNpadIdType_Other = 0x10 , HidNpadIdType_Handheld = 0x20 } |
HID controller IDs. More... | |
enum | HidNpadStyleTag { HidNpadStyleTag_NpadFullKey = (1U<<( 0 )) , HidNpadStyleTag_NpadHandheld = (1U<<( 1 )) , HidNpadStyleTag_NpadJoyDual = (1U<<( 2 )) , HidNpadStyleTag_NpadJoyLeft = (1U<<( 3 )) , HidNpadStyleTag_NpadJoyRight = (1U<<( 4 )) , HidNpadStyleTag_NpadGc = (1U<<( 5 )) , HidNpadStyleTag_NpadPalma = (1U<<( 6 )) , HidNpadStyleTag_NpadLark = (1U<<( 7 )) , HidNpadStyleTag_NpadHandheldLark = (1U<<( 8 )) , HidNpadStyleTag_NpadLucia = (1U<<( 9 )) , HidNpadStyleTag_NpadLagon = (1U<<( 10 )) , HidNpadStyleTag_NpadLager = (1U<<( 11 )) , HidNpadStyleTag_NpadSystemExt = (1U<<( 29 )) , HidNpadStyleTag_NpadSystem = (1U<<( 30 )) , HidNpadStyleSet_NpadFullCtrl = HidNpadStyleTag_NpadFullKey | HidNpadStyleTag_NpadHandheld | HidNpadStyleTag_NpadJoyDual , HidNpadStyleSet_NpadStandard = HidNpadStyleSet_NpadFullCtrl | HidNpadStyleTag_NpadJoyLeft | HidNpadStyleTag_NpadJoyRight } |
HID controller styles. More... | |
enum | HidColorAttribute { HidColorAttribute_Ok = 0 , HidColorAttribute_ReadError = 1 , HidColorAttribute_NoController = 2 } |
HidColorAttribute. More... | |
enum | HidNpadButton { HidNpadButton_A = (1UL<<( 0 )) , HidNpadButton_B = (1UL<<( 1 )) , HidNpadButton_X = (1UL<<( 2 )) , HidNpadButton_Y = (1UL<<( 3 )) , HidNpadButton_StickL = (1UL<<( 4 )) , HidNpadButton_StickR = (1UL<<( 5 )) , HidNpadButton_L = (1UL<<( 6 )) , HidNpadButton_R = (1UL<<( 7 )) , HidNpadButton_ZL = (1UL<<( 8 )) , HidNpadButton_ZR = (1UL<<( 9 )) , HidNpadButton_Plus = (1UL<<( 10 )) , HidNpadButton_Minus = (1UL<<( 11 )) , HidNpadButton_Left = (1UL<<( 12 )) , HidNpadButton_Up = (1UL<<( 13 )) , HidNpadButton_Right = (1UL<<( 14 )) , HidNpadButton_Down = (1UL<<( 15 )) , HidNpadButton_StickLLeft = (1UL<<( 16 )) , HidNpadButton_StickLUp = (1UL<<( 17 )) , HidNpadButton_StickLRight = (1UL<<( 18 )) , HidNpadButton_StickLDown = (1UL<<( 19 )) , HidNpadButton_StickRLeft = (1UL<<( 20 )) , HidNpadButton_StickRUp = (1UL<<( 21 )) , HidNpadButton_StickRRight = (1UL<<( 22 )) , HidNpadButton_StickRDown = (1UL<<( 23 )) , HidNpadButton_LeftSL = (1UL<<( 24 )) , HidNpadButton_LeftSR = (1UL<<( 25 )) , HidNpadButton_RightSL = (1UL<<( 26 )) , HidNpadButton_RightSR = (1UL<<( 27 )) , HidNpadButton_Palma = (1UL<<( 28 )) , HidNpadButton_Verification = (1UL<<( 29 )) , HidNpadButton_HandheldLeftB = (1UL<<( 30 )) , HidNpadButton_LagonCLeft = (1UL<<( 31 )) , HidNpadButton_LagonCUp = (1UL<<( 32 )) , HidNpadButton_LagonCRight = (1UL<<( 33 )) , HidNpadButton_LagonCDown = (1UL<<( 34 )) , HidNpadButton_AnyLeft = HidNpadButton_Left | HidNpadButton_StickLLeft | HidNpadButton_StickRLeft , HidNpadButton_AnyUp = HidNpadButton_Up | HidNpadButton_StickLUp | HidNpadButton_StickRUp , HidNpadButton_AnyRight = HidNpadButton_Right | HidNpadButton_StickLRight | HidNpadButton_StickRRight , HidNpadButton_AnyDown = HidNpadButton_Down | HidNpadButton_StickLDown | HidNpadButton_StickRDown , HidNpadButton_AnySL = HidNpadButton_LeftSL | HidNpadButton_RightSL , HidNpadButton_AnySR = HidNpadButton_LeftSR | HidNpadButton_RightSR } |
HidNpadButton. More... | |
enum | HidDebugPadAttribute { HidDebugPadAttribute_IsConnected = (1U<<( 0 )) } |
HidDebugPadAttribute. More... | |
enum | HidTouchAttribute { HidTouchAttribute_Start = (1U<<( 0 )) , HidTouchAttribute_End = (1U<<( 1 )) } |
HidTouchAttribute. More... | |
enum | HidMouseAttribute { HidMouseAttribute_Transferable = (1U<<( 0 )) , HidMouseAttribute_IsConnected = (1U<<( 1 )) } |
HidMouseAttribute. More... | |
enum | HidNpadAttribute { HidNpadAttribute_IsConnected = (1U<<( 0 )) , HidNpadAttribute_IsWired = (1U<<( 1 )) , HidNpadAttribute_IsLeftConnected = (1U<<( 2 )) , HidNpadAttribute_IsLeftWired = (1U<<( 3 )) , HidNpadAttribute_IsRightConnected = (1U<<( 4 )) , HidNpadAttribute_IsRightWired = (1U<<( 5 )) } |
HidNpadAttribute. More... | |
enum | HidSixAxisSensorAttribute { HidSixAxisSensorAttribute_IsConnected = (1U<<( 0 )) , HidSixAxisSensorAttribute_IsInterpolated = (1U<<( 1 )) } |
HidSixAxisSensorAttribute. More... | |
enum | HidGestureAttribute { HidGestureAttribute_IsNewTouch = (1U<<( 4 )) , HidGestureAttribute_IsDoubleTap = (1U<<( 8 )) } |
HidGestureAttribute. More... | |
enum | HidGestureDirection { HidGestureDirection_None = 0 , HidGestureDirection_Left = 1 , HidGestureDirection_Up = 2 , HidGestureDirection_Right = 3 , HidGestureDirection_Down = 4 } |
HidGestureDirection. More... | |
enum | HidGestureType { HidGestureType_Idle = 0 , HidGestureType_Complete = 1 , HidGestureType_Cancel = 2 , HidGestureType_Touch = 3 , HidGestureType_Press = 4 , HidGestureType_Tap = 5 , HidGestureType_Pan = 6 , HidGestureType_Swipe = 7 , HidGestureType_Pinch = 8 , HidGestureType_Rotate = 9 } |
HidGestureType. More... | |
enum | HidGyroscopeZeroDriftMode { HidGyroscopeZeroDriftMode_Loose = 0 , HidGyroscopeZeroDriftMode_Standard = 1 , HidGyroscopeZeroDriftMode_Tight = 2 } |
GyroscopeZeroDriftMode. More... | |
enum | HidNpadJoyHoldType { HidNpadJoyHoldType_Vertical = 0 , HidNpadJoyHoldType_Horizontal = 1 } |
NpadJoyHoldType. More... | |
enum | HidNpadJoyDeviceType { HidNpadJoyDeviceType_Left = 0 , HidNpadJoyDeviceType_Right = 1 } |
NpadJoyDeviceType. More... | |
enum | HidNpadHandheldActivationMode { HidNpadHandheldActivationMode_Dual = 0 , HidNpadHandheldActivationMode_Single = 1 , HidNpadHandheldActivationMode_None = 2 } |
This controls how many Joy-Cons must be attached for handheld-mode to be activated. More... | |
enum | HidNpadJoyAssignmentMode { HidNpadJoyAssignmentMode_Dual = 0 , HidNpadJoyAssignmentMode_Single = 1 } |
NpadJoyAssignmentMode. More... | |
enum | HidNpadCommunicationMode { HidNpadCommunicationMode_5ms = 0 , HidNpadCommunicationMode_10ms = 1 , HidNpadCommunicationMode_15ms = 2 , HidNpadCommunicationMode_Default = 3 } |
NpadCommunicationMode. More... | |
enum | HidDeviceTypeBits { HidDeviceTypeBits_FullKey = (1U<<( 0 )) , HidDeviceTypeBits_DebugPad = (1U<<( 1 )) , HidDeviceTypeBits_HandheldLeft = (1U<<( 2 )) , HidDeviceTypeBits_HandheldRight = (1U<<( 3 )) , HidDeviceTypeBits_JoyLeft = (1U<<( 4 )) , HidDeviceTypeBits_JoyRight = (1U<<( 5 )) , HidDeviceTypeBits_Palma = (1U<<( 6 )) , HidDeviceTypeBits_LarkHvcLeft = (1U<<( 7 )) , HidDeviceTypeBits_LarkHvcRight = (1U<<( 8 )) , HidDeviceTypeBits_LarkNesLeft = (1U<<( 9 )) , HidDeviceTypeBits_LarkNesRight = (1U<<( 10 )) , HidDeviceTypeBits_HandheldLarkHvcLeft = (1U<<( 11 )) , HidDeviceTypeBits_HandheldLarkHvcRight = (1U<<( 12 )) , HidDeviceTypeBits_HandheldLarkNesLeft = (1U<<( 13 )) , HidDeviceTypeBits_HandheldLarkNesRight = (1U<<( 14 )) , HidDeviceTypeBits_Lucia = (1U<<( 15 )) , HidDeviceTypeBits_Lagon = (1U<<( 16 )) , HidDeviceTypeBits_Lager = (1U<<( 17 )) , HidDeviceTypeBits_System = (1U<<( 31 )) } |
DeviceType (system) More... | |
enum | HidDeviceType { HidDeviceType_JoyRight1 = 1 , HidDeviceType_JoyLeft2 = 2 , HidDeviceType_FullKey3 = 3 , HidDeviceType_JoyLeft4 = 4 , HidDeviceType_JoyRight5 = 5 , HidDeviceType_FullKey6 = 6 , HidDeviceType_LarkHvcLeft = 7 , HidDeviceType_LarkHvcRight = 8 , HidDeviceType_LarkNesLeft = 9 , HidDeviceType_LarkNesRight = 10 , HidDeviceType_Lucia = 11 , HidDeviceType_Palma = 12 , HidDeviceType_FullKey13 = 13 , HidDeviceType_FullKey15 = 15 , HidDeviceType_DebugPad = 17 , HidDeviceType_System19 = 19 , HidDeviceType_System20 = 20 , HidDeviceType_System21 = 21 , HidDeviceType_Lagon = 22 , HidDeviceType_Lager = 28 } |
Internal DeviceType for [9.0.0+]. Converted to/from the pre-9.0.0 version of this by the hiddbg funcs. More... | |
enum | HidAppletFooterUiType { HidAppletFooterUiType_None = 0 , HidAppletFooterUiType_HandheldNone = 1 , HidAppletFooterUiType_HandheldJoyConLeftOnly = 2 , HidAppletFooterUiType_HandheldJoyConRightOnly = 3 , HidAppletFooterUiType_HandheldJoyConLeftJoyConRight = 4 , HidAppletFooterUiType_JoyDual = 5 , HidAppletFooterUiType_JoyDualLeftOnly = 6 , HidAppletFooterUiType_JoyDualRightOnly = 7 , HidAppletFooterUiType_JoyLeftHorizontal = 8 , HidAppletFooterUiType_JoyLeftVertical = 9 , HidAppletFooterUiType_JoyRightHorizontal = 10 , HidAppletFooterUiType_JoyRightVertical = 11 , HidAppletFooterUiType_SwitchProController = 12 , HidAppletFooterUiType_CompatibleProController = 13 , HidAppletFooterUiType_CompatibleJoyCon = 14 , HidAppletFooterUiType_LarkHvc1 = 15 , HidAppletFooterUiType_LarkHvc2 = 16 , HidAppletFooterUiType_LarkNesLeft = 17 , HidAppletFooterUiType_LarkNesRight = 18 , HidAppletFooterUiType_Lucia = 19 , HidAppletFooterUiType_Verification = 20 , HidAppletFooterUiType_Lagon = 21 } |
AppletFooterUiType (system) More... | |
enum | HidNpadInterfaceType { HidNpadInterfaceType_Bluetooth = 1 , HidNpadInterfaceType_Rail = 2 , HidNpadInterfaceType_USB = 3 , HidNpadInterfaceType_Unknown4 = 4 } |
NpadInterfaceType (system) More... | |
enum | XcdInterfaceType { XcdInterfaceType_Bluetooth = (1U<<( 0 )) , XcdInterfaceType_Uart = (1U<<( 1 )) , XcdInterfaceType_Usb = (1U<<( 2 )) , XcdInterfaceType_FieldSet = (1U<<( 7 )) } |
XcdInterfaceType. | |
enum | HidNpadLarkType { HidNpadLarkType_Invalid = 0 , HidNpadLarkType_H1 = 1 , HidNpadLarkType_H2 = 2 , HidNpadLarkType_NL = 3 , HidNpadLarkType_NR = 4 } |
NpadLarkType. More... | |
enum | HidNpadLuciaType { HidNpadLuciaType_Invalid = 0 , HidNpadLuciaType_J = 1 , HidNpadLuciaType_E = 2 , HidNpadLuciaType_U = 3 } |
NpadLuciaType. More... | |
enum | HidNpadLagerType { HidNpadLagerType_Invalid = 0 , HidNpadLagerType_J = 1 , HidNpadLagerType_E = 2 , HidNpadLagerType_U = 3 } |
NpadLagerType. More... | |
enum | HidVibrationDeviceType { HidVibrationDeviceType_Unknown = 0 , HidVibrationDeviceType_LinearResonantActuator = 1 , HidVibrationDeviceType_GcErm = 2 } |
Type values for HidVibrationDeviceInfo::type. More... | |
enum | HidVibrationDevicePosition { HidVibrationDevicePosition_None = 0 , HidVibrationDevicePosition_Left = 1 , HidVibrationDevicePosition_Right = 2 } |
VibrationDevicePosition. More... | |
enum | HidVibrationGcErmCommand { HidVibrationGcErmCommand_Stop = 0 , HidVibrationGcErmCommand_Start = 1 , HidVibrationGcErmCommand_StopHard = 2 } |
VibrationGcErmCommand. More... | |
enum | HidPalmaOperationType { HidPalmaOperationType_PlayActivity = 0 , HidPalmaOperationType_SetFrModeType = 1 , HidPalmaOperationType_ReadStep = 2 , HidPalmaOperationType_EnableStep = 3 , HidPalmaOperationType_ResetStep = 4 , HidPalmaOperationType_ReadApplicationSection = 5 , HidPalmaOperationType_WriteApplicationSection = 6 , HidPalmaOperationType_ReadUniqueCode = 7 , HidPalmaOperationType_SetUniqueCodeInvalid = 8 , HidPalmaOperationType_WriteActivityEntry = 9 , HidPalmaOperationType_WriteRgbLedPatternEntry = 10 , HidPalmaOperationType_WriteWaveEntry = 11 , HidPalmaOperationType_ReadDataBaseIdentificationVersion = 12 , HidPalmaOperationType_WriteDataBaseIdentificationVersion = 13 , HidPalmaOperationType_SuspendFeature = 14 , HidPalmaOperationType_ReadPlayLog = 15 , HidPalmaOperationType_ResetPlayLog = 16 } |
PalmaOperationType. More... | |
enum | HidPalmaFrModeType { HidPalmaFrModeType_Off = 0 , HidPalmaFrModeType_B01 = 1 , HidPalmaFrModeType_B02 = 2 , HidPalmaFrModeType_B03 = 3 , HidPalmaFrModeType_Downloaded = 4 } |
PalmaFrModeType. More... | |
enum | HidPalmaWaveSet { HidPalmaWaveSet_Small = 0 , HidPalmaWaveSet_Medium = 1 , HidPalmaWaveSet_Large = 2 } |
PalmaWaveSet. More... | |
enum | HidPalmaFeature { HidPalmaFeature_FrMode = (1U<<( 0 )) , HidPalmaFeature_RumbleFeedback = (1U<<( 1 )) , HidPalmaFeature_Step = (1U<<( 2 )) , HidPalmaFeature_MuteSwitch = (1U<<( 3 )) } |
PalmaFeature. More... | |
Human input device (hid) service IPC wrapper.
AppletFooterUiType (system)
enum HidColorAttribute |
enum HidDebugPadAttribute |
enum HidDebugPadButton |
HidDebugPadButton.
enum HidDeviceType |
Internal DeviceType for [9.0.0+]. Converted to/from the pre-9.0.0 version of this by the hiddbg funcs.
Enumerator | |
---|---|
HidDeviceType_JoyRight1 | |
HidDeviceType_JoyLeft2 | |
HidDeviceType_FullKey3 | |
HidDeviceType_JoyLeft4 | |
HidDeviceType_JoyRight5 | |
HidDeviceType_FullKey6 | |
HidDeviceType_LarkHvcLeft | HidDeviceTypeBits_LarkHvcLeft, HidDeviceTypeBits_HandheldLarkHvcLeft |
HidDeviceType_LarkHvcRight | HidDeviceTypeBits_LarkHvcRight, HidDeviceTypeBits_HandheldLarkHvcRight |
HidDeviceType_LarkNesLeft | HidDeviceTypeBits_LarkNesLeft, HidDeviceTypeBits_HandheldLarkNesLeft |
HidDeviceType_LarkNesRight | HidDeviceTypeBits_LarkNesRight, HidDeviceTypeBits_HandheldLarkNesRight |
HidDeviceType_Lucia | |
HidDeviceType_Palma | [9.0.0+] HidDeviceTypeBits_Palma |
HidDeviceType_FullKey13 | |
HidDeviceType_FullKey15 | |
HidDeviceType_DebugPad | |
HidDeviceType_System19 | HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadFullKey. |
HidDeviceType_System20 | HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadJoyDual. |
HidDeviceType_System21 | HidDeviceTypeBits_System with HidNpadStyleTag |= HidNpadStyleTag_NpadJoyDual. |
HidDeviceType_Lagon | |
HidDeviceType_Lager |
enum HidDeviceTypeBits |
DeviceType (system)
enum HidGestureAttribute |
enum HidGestureDirection |
enum HidGestureType |
HidGestureType.
KeyboardLockKeyEvent.
enum HidMouseAttribute |
enum HidNpadAttribute |
enum HidNpadButton |
HidNpadButton.
enum HidNpadIdType |
HID controller IDs.
enum HidNpadInterfaceType |
NpadJoyAssignmentMode.
Enumerator | |
---|---|
HidNpadJoyAssignmentMode_Dual | Dual (Set by hidSetNpadJoyAssignmentModeDual) |
HidNpadJoyAssignmentMode_Single | Single (Set by hidSetNpadJoyAssignmentModeSingle*()) |
enum HidNpadJoyDeviceType |
enum HidNpadJoyHoldType |
enum HidNpadLagerType |
enum HidNpadLarkType |
enum HidNpadLuciaType |
enum HidNpadStyleTag |
HID controller styles.
enum HidPalmaFeature |
enum HidPalmaFrModeType |
PalmaOperationType.
enum HidPalmaWaveSet |
enum HidTouchAttribute |
Type values for HidVibrationDeviceInfo::type.
Enumerator | |
---|---|
HidVibrationDeviceType_Unknown | Unknown. |
HidVibrationDeviceType_LinearResonantActuator | LinearResonantActuator. |
HidVibrationDeviceType_GcErm | GcErm (HidNpadStyleTag_NpadGc) |
Result hidAcquireNpadStyleSetUpdateEventHandle | ( | HidNpadIdType | id, |
Event * | out_event, | ||
bool | autoclear | ||
) |
Gets an Event which is signaled when the hidGetNpadStyleSet output is updated for the specified controller.
[in] | id | HidNpadIdType |
[out] | out_event | Output Event. |
[in] | autoclear | The autoclear for the Event. |
Result hidAcquirePalmaOperationCompleteEvent | ( | HidPalmaConnectionHandle | handle, |
Event * | out_event, | ||
bool | autoclear | ||
) |
Gets an Event which is signaled when data is available with hidGetPalmaOperationInfo.
[in] | handle | HidPalmaConnectionHandle |
[out] | out_event | Output Event. |
[in] | autoclear | The autoclear for the Event. |
Result hidBeginPermitVibrationSession | ( | void | ) |
Begins a forced-permitted vibration session.
Result hidCancelWritePalmaWaveEntry | ( | HidPalmaConnectionHandle | handle | ) |
CancelWritePalmaWaveEntry.
[in] | handle | HidPalmaConnectionHandle |
Result hidClearNpadCaptureButtonAssignment | ( | void | ) |
ClearNpadCaptureButtonAssignment.
Result hidDisconnectNpad | ( | HidNpadIdType | id | ) |
DisconnectNpad.
[in] | id | HidNpadIdType |
Result hidEnablePalmaBoostMode | ( | bool | flag | ) |
EnablePalmaBoostMode.
[in] | flag | Flag |
Result hidEnablePalmaStep | ( | HidPalmaConnectionHandle | handle, |
bool | flag | ||
) |
EnablePalmaStep.
[in] | handle | HidPalmaConnectionHandle |
[in] | flag | Flag |
Result hidEnableSixAxisSensorFusion | ( | HidSixAxisSensorHandle | handle, |
bool | flag | ||
) |
EnableSixAxisSensorFusion.
[in] | handle | HidSixAxisSensorHandle |
[in] | flag | Flag |
Result hidEnableUnintendedHomeButtonInputProtection | ( | HidNpadIdType | id, |
bool | flag | ||
) |
EnableUnintendedHomeButtonInputProtection.
[in] | id | HidNpadIdType |
[in] | flag | Whether UnintendedHomeButtonInputProtection is enabled. |
Result hidEnableUsbFullKeyController | ( | bool | flag | ) |
EnableUsbFullKeyController.
[in] | flag | Flag |
Result hidEndPermitVibrationSession | ( | void | ) |
Ends the session started by hidBeginPermitVibrationSession.
Result hidFinalizeSevenSixAxisSensor | ( | void | ) |
Finalizes the SevenSixAxisSensor.
Result hidGetActualVibrationGcErmCommand | ( | HidVibrationDeviceHandle | handle, |
HidVibrationGcErmCommand * | out | ||
) |
Get HidVibrationGcErmCommand for the specified device, for HidVibrationDeviceType_GcErm.
[in] | handle | HidVibrationDeviceHandle |
[out] | out | HidVibrationGcErmCommand |
Result hidGetActualVibrationValue | ( | HidVibrationDeviceHandle | handle, |
HidVibrationValue * | out | ||
) |
Gets the current HidVibrationValue for the specified device.
[in] | handle | HidVibrationDeviceHandle |
[out] | out | HidVibrationValue |
u32 hidGetAppletFooterUiAttributesSet | ( | HidNpadIdType | id | ) |
Gets the AppletFooterUiAttributesSet for the specified Npad.
[in] | id | HidNpadIdType |
HidAppletFooterUiType hidGetAppletFooterUiTypes | ( | HidNpadIdType | id | ) |
Gets HidAppletFooterUiType for the specified Npad.
[in] | id | HidNpadIdType |
size_t hidGetGestureStates | ( | HidGestureState * | states, |
size_t | count | ||
) |
Gets HidGestureState.
[out] | states | Output array of HidGestureState. |
[in] | count | Size of the states array in entries. |
Result hidGetGyroBias | ( | UtilFloat3 * | out | ) |
GetGyroBias.
[out] | out | UtilFloat3 |
Result hidGetGyroscopeZeroDriftMode | ( | HidSixAxisSensorHandle | handle, |
HidGyroscopeZeroDriftMode * | mode | ||
) |
Gets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle.
[in] | handle | HidSixAxisSensorHandle |
[out] | mode | HidGyroscopeZeroDriftMode |
size_t hidGetKeyboardStates | ( | HidKeyboardState * | states, |
size_t | count | ||
) |
Gets HidKeyboardState.
[out] | states | Output array of HidKeyboardState. |
[in] | count | Size of the states array in entries. |
size_t hidGetMouseStates | ( | HidMouseState * | states, |
size_t | count | ||
) |
Gets HidMouseState.
[out] | states | Output array of HidMouseState. |
[in] | count | Size of the states array in entries. |
Result hidGetNpadCommunicationMode | ( | HidNpadCommunicationMode * | out | ) |
GetNpadCommunicationMode.
[out] | out | HidNpadCommunicationMode |
Result hidGetNpadControllerColorSingle | ( | HidNpadIdType | id, |
HidNpadControllerColor * | color | ||
) |
Gets the main HidNpadControllerColor for the specified Npad.
[in] | id | HidNpadIdType |
[out] | color | HidNpadControllerColor |
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).
[in] | id | HidNpadIdType |
[out] | color_left | HidNpadControllerColor |
[out] | color_right | HidNpadControllerColor |
u32 hidGetNpadDeviceType | ( | HidNpadIdType | id | ) |
Gets the DeviceType for the specified Npad.
[in] | id | HidNpadIdType |
Result hidGetNpadHandheldActivationMode | ( | HidNpadHandheldActivationMode * | out | ) |
Gets the HidNpadHandheldActivationMode.
[out] | out | HidNpadHandheldActivationMode |
Result hidGetNpadInterfaceType | ( | HidNpadIdType | id, |
u8 * | out | ||
) |
Gets the HidNpadInterfaceType for the specified controller.
[in] | id | HidNpadIdType |
[out] | out | HidNpadInterfaceType |
HidNpadJoyAssignmentMode hidGetNpadJoyAssignment | ( | HidNpadIdType | id | ) |
Gets the HidNpadJoyAssignmentMode for the specified Npad.
[in] | id | HidNpadIdType |
Result hidGetNpadJoyHoldType | ( | HidNpadJoyHoldType * | type | ) |
Gets the HidNpadJoyHoldType.
[out] | type | HidNpadJoyHoldType |
HidNpadLagerType hidGetNpadLagerType | ( | HidNpadIdType | id | ) |
Gets HidNpadLagerType for the specified Npad.
[in] | id | HidNpadIdType |
Result hidGetNpadOfHighestBatteryLevel | ( | const HidNpadIdType * | ids, |
size_t | count, | ||
HidNpadIdType * | out | ||
) |
GetNpadOfHighestBatteryLevel.
[in] | ids | Input array of HidNpadIdType, HidNpadIdType_Handheld is ignored. |
[in] | count | Total entries in the ids array. |
[out] | out | HidNpadIdType |
void hidGetNpadPowerInfoSingle | ( | HidNpadIdType | id, |
HidPowerInfo * | info | ||
) |
Gets the main HidPowerInfo for the specified Npad.
[in] | id | HidNpadIdType |
[out] | info | HidPowerInfo |
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).
[in] | id | HidNpadIdType |
[out] | info_left | HidPowerInfo |
[out] | info_right | HidPowerInfo |
size_t hidGetNpadStatesFullKey | ( | HidNpadIdType | id, |
HidNpadFullKeyState * | states, | ||
size_t | count | ||
) |
Gets HidNpadFullKeyState.
[out] | states | Output array of HidNpadFullKeyState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesGc | ( | HidNpadIdType | id, |
HidNpadGcState * | states, | ||
size_t | count | ||
) |
Gets HidNpadGcState.
[out] | states | Output array of HidNpadGcState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesHandheld | ( | HidNpadIdType | id, |
HidNpadHandheldState * | states, | ||
size_t | count | ||
) |
Gets HidNpadHandheldState.
[out] | states | Output array of HidNpadHandheldState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesHandheldLark | ( | HidNpadIdType | id, |
HidNpadHandheldLarkState * | states, | ||
size_t | count | ||
) |
Gets HidNpadHandheldLarkState.
[out] | states | Output array of HidNpadHandheldLarkState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesJoyDual | ( | HidNpadIdType | id, |
HidNpadJoyDualState * | states, | ||
size_t | count | ||
) |
Gets HidNpadJoyDualState.
[out] | states | Output array of HidNpadJoyDualState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesJoyLeft | ( | HidNpadIdType | id, |
HidNpadJoyLeftState * | states, | ||
size_t | count | ||
) |
Gets HidNpadJoyLeftState.
[out] | states | Output array of HidNpadJoyLeftState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesJoyRight | ( | HidNpadIdType | id, |
HidNpadJoyRightState * | states, | ||
size_t | count | ||
) |
Gets HidNpadJoyRightState.
[out] | states | Output array of HidNpadJoyRightState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesLager | ( | HidNpadIdType | id, |
HidNpadLagerState * | states, | ||
size_t | count | ||
) |
Gets HidNpadLagerState.
[out] | states | Output array of HidNpadLagerState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesLark | ( | HidNpadIdType | id, |
HidNpadLarkState * | states, | ||
size_t | count | ||
) |
Gets HidNpadLarkState.
[out] | states | Output array of HidNpadLarkState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesLucia | ( | HidNpadIdType | id, |
HidNpadLuciaState * | states, | ||
size_t | count | ||
) |
Gets HidNpadLuciaState.
[out] | states | Output array of HidNpadLuciaState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesPalma | ( | HidNpadIdType | id, |
HidNpadPalmaState * | states, | ||
size_t | count | ||
) |
Gets HidNpadPalmaState.
[out] | states | Output array of HidNpadPalmaState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesSystem | ( | HidNpadIdType | id, |
HidNpadSystemState * | states, | ||
size_t | count | ||
) |
Gets HidNpadSystemState.
[out] | states | Output array of HidNpadSystemState. |
[in] | count | Size of the states array in entries. |
size_t hidGetNpadStatesSystemExt | ( | HidNpadIdType | id, |
HidNpadSystemExtState * | states, | ||
size_t | count | ||
) |
Gets HidNpadSystemExtState.
[out] | states | Output array of HidNpadSystemExtState. |
[in] | count | Size of the states array in entries. |
u32 hidGetNpadStyleSet | ( | HidNpadIdType | id | ) |
Gets the StyleSet for the specified Npad.
[in] | id | HidNpadIdType |
void hidGetNpadSystemButtonProperties | ( | HidNpadIdType | id, |
HidNpadSystemButtonProperties * | out | ||
) |
Gets the HidNpadSystemButtonProperties for the specified Npad.
[in] | id | HidNpadIdType |
[out] | out | HidNpadSystemButtonProperties |
void hidGetNpadSystemProperties | ( | HidNpadIdType | id, |
HidNpadSystemProperties * | out | ||
) |
Gets the HidNpadSystemProperties for the specified Npad.
[in] | id | HidNpadIdType |
[out] | out | HidNpadSystemProperties |
Result hidGetPalmaBluetoothAddress | ( | HidPalmaConnectionHandle | handle, |
BtdrvAddress * | out | ||
) |
GetPalmaBluetoothAddress.
[in] | handle | HidPalmaConnectionHandle |
[out] | out | BtdrvAddress |
Result hidGetPalmaConnectionHandle | ( | HidNpadIdType | id, |
HidPalmaConnectionHandle * | out | ||
) |
GetPalmaConnectionHandle.
[in] | id | HidNpadIdType |
[out] | out | HidPalmaConnectionHandle |
Result hidGetPalmaDataBaseIdentificationVersion | ( | HidPalmaConnectionHandle | handle | ) |
GetPalmaDataBaseIdentificationVersion.
[in] | handle | HidPalmaConnectionHandle |
Result hidGetPalmaOperationInfo | ( | HidPalmaConnectionHandle | handle, |
HidPalmaOperationInfo * | out | ||
) |
Gets HidPalmaOperationInfo for a completed operation.
[in] | handle | HidPalmaConnectionHandle |
[out] | out | HidPalmaOperationInfo |
Result hidGetPlayerLedPattern | ( | HidNpadIdType | id, |
u8 * | out | ||
) |
GetPlayerLedPattern.
[in] | id | HidNpadIdType |
[out] | out | Output value. |
Result hidGetSensorFusionError | ( | float * | out | ) |
GetSensorFusionError.
[out] | out | Output data. |
Result hidGetSevenSixAxisSensorFusionStrength | ( | float * | strength | ) |
Gets the SevenSixAxisSensor FusionStrength.
[out] | strength | Strength |
Result hidGetSevenSixAxisSensorStates | ( | HidSevenSixAxisSensorState * | states, |
size_t | count, | ||
size_t * | total_out | ||
) |
GetSevenSixAxisSensorStates.
[out] | states | Output array of HidSevenSixAxisSensorState. |
[in] | count | Size of the states array in entries. |
[out] | total_out | Total output entries. |
Result hidGetSixAxisSensorFusionParameters | ( | HidSixAxisSensorHandle | handle, |
float * | unk0, | ||
float * | unk1 | ||
) |
GetSixAxisSensorFusionParameters.
[in] | handle | HidSixAxisSensorHandle |
[out] | unk0 | Unknown |
[out] | unk1 | Unknown |
Result hidGetSixAxisSensorHandles | ( | HidSixAxisSensorHandle * | handles, |
s32 | total_handles, | ||
HidNpadIdType | id, | ||
HidNpadStyleTag | style | ||
) |
Gets SixAxisSensorHandles.
[out] | handles | Output array of HidSixAxisSensorHandle. |
[in] | total_handles | Total handles for the handles array. Must be 1 or 2, if 2 handles aren't supported by the specified style an error is thrown. |
[in] | id | HidNpadIdType |
[in] | style | HidNpadStyleTag |
size_t hidGetSixAxisSensorStates | ( | HidSixAxisSensorHandle | handle, |
HidSixAxisSensorState * | states, | ||
size_t | count | ||
) |
Gets HidSixAxisSensorState for the specified handle.
[in] | handle | HidSixAxisSensorHandle |
[out] | states | Output array of HidSixAxisSensorState. |
[in] | count | Size of the states array in entries. |
Gets which controller styles are supported.
[out] | style_set | Bitfield of HidNpadStyleTag. |
size_t hidGetTouchScreenStates | ( | HidTouchScreenState * | states, |
size_t | count | ||
) |
Gets HidTouchScreenState.
[out] | states | Output array of HidTouchScreenState. |
[in] | count | Size of the states array in entries. |
Result hidGetVibrationDeviceInfo | ( | HidVibrationDeviceHandle | handle, |
HidVibrationDeviceInfo * | out | ||
) |
Gets HidVibrationDeviceInfo for the specified device.
[in] | handle | HidVibrationDeviceHandle |
[out] | out | HidVibrationDeviceInfo |
Result hidInitializePalma | ( | HidPalmaConnectionHandle | handle | ) |
Result hidInitializeSevenSixAxisSensor | ( | void | ) |
Initializes the SevenSixAxisSensor.
Result hidInitializeVibrationDevices | ( | HidVibrationDeviceHandle * | handles, |
s32 | total_handles, | ||
HidNpadIdType | id, | ||
HidNpadStyleTag | style | ||
) |
Gets and initializes vibration handles.
[out] | handles | Output array of HidVibrationDeviceHandle. |
[in] | total_handles | Total handles for the handles array. Must be 1 or 2, if 2 handles aren't supported by the specified style an error is thrown. |
[in] | id | HidNpadIdType |
[in] | style | HidNpadStyleTag |
Result hidIsFirmwareUpdateAvailableForSixAxisSensor | ( | HidSixAxisSensorHandle | handle, |
bool * | out | ||
) |
IsFirmwareUpdateAvailableForSixAxisSensor.
[in] | handle | HidSixAxisSensorHandle |
[out] | out | Output flag. |
Result hidIsFirmwareUpdateNeededForNotification | ( | bool * | out | ) |
IsFirmwareUpdateNeededForNotification.
[out] | out | Output flag. |
Result hidIsSevenSixAxisSensorAtRest | ( | bool * | out | ) |
IsSevenSixAxisSensorAtRest.
[out] | out | Output flag. |
Result hidIsSixAxisSensorAtRest | ( | HidSixAxisSensorHandle | handle, |
bool * | out | ||
) |
IsSixAxisSensorAtRest.
[in] | handle | HidSixAxisSensorHandle |
[out] | out | Output flag. |
Result hidIsSixAxisSensorFusionEnabled | ( | HidSixAxisSensorHandle | handle, |
bool * | out | ||
) |
IsSixAxisSensorFusionEnabled.
[in] | handle | HidSixAxisSensorHandle |
[out] | out | Output flag. |
Result hidIsUsbFullKeyControllerConnected | ( | HidNpadIdType | id, |
bool * | out | ||
) |
IsUsbFullKeyControllerConnected.
[in] | id | HidNpadIdType |
[out] | out | Output flag. |
Result hidIsUsbFullKeyControllerEnabled | ( | bool * | out | ) |
IsUsbFullKeyControllerEnabled.
[out] | out | Output flag. |
Result hidIsVibrationDeviceMounted | ( | HidVibrationDeviceHandle | handle, |
bool * | flag | ||
) |
Gets whether vibration is available with the specified device.
[in] | handle | HidVibrationDeviceHandle |
[out] | flag | Flag |
Result hidIsVibrationPermitted | ( | bool * | flag | ) |
Gets whether vibration is allowed.
[out] | flag | Flag |
|
inlinestatic |
Gets the state of a key in a HidKeyboardState.
[in] | state | HidKeyboardState. |
[in] | key | HidKeyboardKey. |
Result hidMergeSingleJoyAsDualJoy | ( | HidNpadIdType | id0, |
HidNpadIdType | id1 | ||
) |
Merge two single joy-cons into a dual-mode controller.
Use this after hidSetNpadJoyAssignmentModeDual, when hidSetNpadJoyAssignmentModeSingleByDefault was previously used (this includes using this manually at application exit).
To be successful, id0/id1 must correspond to controllers supporting styles HidNpadStyleTag_NpadJoyLeft/Right, or HidNpadStyleTag_NpadJoyRight/Left.
If successful, the id of the resulting dual controller is set to id0.
[in] | id0 | HidNpadIdType |
[in] | id1 | HidNpadIdType |
Result hidPairPalma | ( | HidPalmaConnectionHandle | handle | ) |
Result hidPermitVibration | ( | bool | flag | ) |
Sets whether vibration is allowed, this also affects the config displayed by System Settings.
[in] | flag | Flag |
Result hidPlayPalmaActivity | ( | HidPalmaConnectionHandle | handle, |
u16 | val | ||
) |
PlayPalmaActivity.
[in] | handle | HidPalmaConnectionHandle |
[in] | val | Input value. |
Result hidReadPalmaApplicationSection | ( | HidPalmaConnectionHandle | handle, |
s32 | inval0, | ||
u64 | size | ||
) |
ReadPalmaApplicationSection.
[in] | handle | HidPalmaConnectionHandle |
[in] | inval0 | First input value. |
[in] | size | This must be within the size of HidPalmaApplicationSectionAccessBuffer. |
Result hidReadPalmaPlayLog | ( | HidPalmaConnectionHandle | handle, |
u16 | unk | ||
) |
ReadPalmaPlayLog.
[in] | handle | HidPalmaConnectionHandle |
[in] | unk | Unknown |
Result hidReadPalmaStep | ( | HidPalmaConnectionHandle | handle | ) |
ReadPalmaStep.
[in] | handle | HidPalmaConnectionHandle |
Result hidReadPalmaUniqueCode | ( | HidPalmaConnectionHandle | handle | ) |
ReadPalmaUniqueCode.
[in] | handle | HidPalmaConnectionHandle |
Result hidResetGyroscopeZeroDriftMode | ( | HidSixAxisSensorHandle | handle | ) |
Resets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle to HidGyroscopeZeroDriftMode_Standard.
[in] | handle | HidSixAxisSensorHandle |
Result hidResetPalmaPlayLog | ( | HidPalmaConnectionHandle | handle, |
u16 | unk | ||
) |
ResetPalmaPlayLog.
[in] | handle | HidPalmaConnectionHandle |
[in] | unk | Unknown |
Result hidResetPalmaStep | ( | HidPalmaConnectionHandle | handle | ) |
ResetPalmaStep.
[in] | handle | HidPalmaConnectionHandle |
Result hidResetSevenSixAxisSensorTimestamp | ( | void | ) |
Resets the timestamp for the SevenSixAxisSensor.
Result hidResetSixAxisSensorFusionParameters | ( | HidSixAxisSensorHandle | handle | ) |
ResetSixAxisSensorFusionParameters.
[in] | handle | HidSixAxisSensorHandle |
SendKeyboardLockKeyEvent.
[in] | events | Bitfield of HidKeyboardLockKeyEvent. |
Result hidSendVibrationGcErmCommand | ( | HidVibrationDeviceHandle | handle, |
HidVibrationGcErmCommand | cmd | ||
) |
Send HidVibrationGcErmCommand to the specified device, for HidVibrationDeviceType_GcErm.
[in] | handle | HidVibrationDeviceHandle |
[in] | cmd | HidVibrationGcErmCommand |
Result hidSendVibrationValue | ( | HidVibrationDeviceHandle | handle, |
const HidVibrationValue * | value | ||
) |
Sends the HidVibrationDeviceHandle to the specified device.
[in] | handle | HidVibrationDeviceHandle |
[in] | value | HidVibrationValue |
Result hidSendVibrationValues | ( | const HidVibrationDeviceHandle * | handles, |
const HidVibrationValue * | values, | ||
s32 | count | ||
) |
Send vibration values[index] to handles[index].
[in] | handles | Input array of HidVibrationDeviceHandle. |
[in] | values | Input array of HidVibrationValue. |
[in] | count | Total entries in the handles/values arrays. |
Result hidSetDisallowedPalmaConnection | ( | const BtdrvAddress * | addrs, |
s32 | count | ||
) |
SetDisallowedPalmaConnection.
[in] | addrs | Input array of BtdrvAddress. |
[in] | count | Total entries in the addrs array. |
Result hidSetGyroscopeZeroDriftMode | ( | HidSixAxisSensorHandle | handle, |
HidGyroscopeZeroDriftMode | mode | ||
) |
Sets the HidGyroscopeZeroDriftMode for the specified SixAxisSensorHandle.
[in] | handle | HidSixAxisSensorHandle |
[in] | mode | HidGyroscopeZeroDriftMode |
Result hidSetIsPalmaAllConnectable | ( | bool | flag | ) |
Sets whether any Palma can connect.
[in] | flag | Flag |
Result hidSetIsPalmaPairedConnectable | ( | bool | flag | ) |
Sets whether paired Palma can connect.
[in] | flag | Flag |
Result hidSetNpadAnalogStickUseCenterClamp | ( | bool | flag | ) |
SetNpadAnalogStickUseCenterClamp.
[in] | flag | Flag |
Result hidSetNpadCaptureButtonAssignment | ( | HidNpadStyleTag | style, |
u64 | buttons | ||
) |
Assigns the button(s) which trigger the CaptureButton.
[in] | style | HidNpadStyleTag, exactly 1 bit must be set. |
[in] | buttons | Bitfield of HidNpadButton, multiple bits can be set. |
Result hidSetNpadCommunicationMode | ( | HidNpadCommunicationMode | mode | ) |
SetNpadCommunicationMode.
[in] | mode | HidNpadCommunicationMode |
Result hidSetNpadHandheldActivationMode | ( | HidNpadHandheldActivationMode | mode | ) |
Sets the HidNpadHandheldActivationMode.
[in] | mode | HidNpadHandheldActivationMode |
Result hidSetNpadJoyAssignmentModeDual | ( | HidNpadIdType | id | ) |
Use this if you want to use a pair of joy-cons as a single HidNpadIdType_No*.
When used, both joy-cons in a pair should be used with this (HidNpadIdType_No1 and HidNpadIdType_No2 for example).
[in] | id | HidNpadIdType, must be HidNpadIdType_No*. |
Result hidSetNpadJoyAssignmentModeSingle | ( | HidNpadIdType | id, |
HidNpadJoyDeviceType | type | ||
) |
This is the same as hidSetNpadJoyAssignmentModeSingleWithDestination, except without the output params.
[in] | id | HidNpadIdType, must be HidNpadIdType_No*. |
[in] | type | HidNpadJoyDeviceType |
Result hidSetNpadJoyAssignmentModeSingleByDefault | ( | HidNpadIdType | id | ) |
This is the same as hidSetNpadJoyAssignmentModeSingle, except HidNpadJoyDeviceType_Left is used for the type.
[in] | id | HidNpadIdType, must be HidNpadIdType_No*. |
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*.
When used, both joy-cons in a pair should be used with this (HidNpadIdType_No1 and HidNpadIdType_No2 for example).
[in] | id | HidNpadIdType, must be HidNpadIdType_No*. |
[in] | type | HidNpadJoyDeviceType |
[out] | flag | Whether the dest output is set. |
[out] | dest | HidNpadIdType |
Result hidSetNpadJoyHoldType | ( | HidNpadJoyHoldType | type | ) |
Sets the HidNpadJoyHoldType.
[in] | type | HidNpadJoyHoldType |
Result hidSetPalmaDataBaseIdentificationVersion | ( | HidPalmaConnectionHandle | handle, |
s32 | version | ||
) |
SetPalmaDataBaseIdentificationVersion.
[in] | handle | HidPalmaConnectionHandle |
[in] | version | Version |
Result hidSetPalmaFrModeType | ( | HidPalmaConnectionHandle | handle, |
HidPalmaFrModeType | type | ||
) |
SetPalmaFrModeType.
[in] | handle | HidPalmaConnectionHandle |
[in] | type | HidPalmaFrModeType |
Result hidSetPalmaUniqueCodeInvalid | ( | HidPalmaConnectionHandle | handle | ) |
SetPalmaUniqueCodeInvalid.
[in] | handle | HidPalmaConnectionHandle |
Result hidSetSevenSixAxisSensorFusionStrength | ( | float | strength | ) |
Sets the SevenSixAxisSensor FusionStrength.
[in] | strength | Strength |
Result hidSetSixAxisSensorFusionParameters | ( | HidSixAxisSensorHandle | handle, |
float | unk0, | ||
float | unk1 | ||
) |
SetSixAxisSensorFusionParameters.
[in] | handle | HidSixAxisSensorHandle |
[in] | unk0 | Must be 0.0f-1.0f. |
[in] | unk1 | Unknown |
Result hidSetSupportedNpadIdType | ( | const HidNpadIdType * | ids, |
size_t | count | ||
) |
Sets which HidNpadIdType are supported.
[in] | ids | Input array of HidNpadIdType. |
[in] | count | Total entries in the ids array. Must be <=10. |
Sets which controller styles are supported.
[in] | style_set | Bitfield of HidNpadStyleTag. |
Result hidSetTouchScreenConfiguration | ( | const HidTouchScreenConfigurationForNx * | config | ) |
SetTouchScreenConfiguration.
[in] | config | HidTouchScreenConfigurationForNx |
Result hidStartSevenSixAxisSensor | ( | void | ) |
Starts the SevenSixAxisSensor.
Result hidStartSixAxisSensor | ( | HidSixAxisSensorHandle | handle | ) |
Starts the SixAxisSensor for the specified handle.
[in] | handle | HidSixAxisSensorHandle |
Result hidStopSevenSixAxisSensor | ( | void | ) |
Stops the SevenSixAxisSensor.
Result hidStopSixAxisSensor | ( | HidSixAxisSensorHandle | handle | ) |
Stops the SixAxisSensor for the specified handle.
[in] | handle | HidSixAxisSensorHandle |
Result hidSuspendPalmaFeature | ( | HidPalmaConnectionHandle | handle, |
u32 | features | ||
) |
SuspendPalmaFeature.
[in] | handle | HidPalmaConnectionHandle |
[in] | features | Bitfield of HidPalmaFeature. |
Result hidSwapNpadAssignment | ( | HidNpadIdType | id0, |
HidNpadIdType | id1 | ||
) |
SwapNpadAssignment.
[in] | id0 | HidNpadIdType |
[in] | id1 | HidNpadIdType |
Result hidWritePalmaActivityEntry | ( | HidPalmaConnectionHandle | handle, |
u16 | unk, | ||
const HidPalmaActivityEntry * | entry | ||
) |
WritePalmaActivityEntry.
[in] | handle | HidPalmaConnectionHandle |
[in] | unk | Unknown |
[in] | entry | HidPalmaActivityEntry |
Result hidWritePalmaApplicationSection | ( | HidPalmaConnectionHandle | handle, |
s32 | inval0, | ||
u64 | size, | ||
const HidPalmaApplicationSectionAccessBuffer * | buf | ||
) |
WritePalmaApplicationSection.
[in] | handle | HidPalmaConnectionHandle |
[in] | inval0 | First input value. |
[in] | size | Size of the data in HidPalmaApplicationSectionAccessBuffer. |
[in] | buf | HidPalmaApplicationSectionAccessBuffer |
Result hidWritePalmaRgbLedPatternEntry | ( | HidPalmaConnectionHandle | handle, |
u16 | unk, | ||
const void * | buffer, | ||
size_t | size | ||
) |
WritePalmaRgbLedPatternEntry.
[in] | handle | HidPalmaConnectionHandle |
[in] | unk | Unknown |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size. |
Result hidWritePalmaWaveEntry | ( | HidPalmaConnectionHandle | handle, |
HidPalmaWaveSet | wave_set, | ||
u16 | unk, | ||
const void * | buffer, | ||
size_t | tmem_size, | ||
size_t | size | ||
) |
WritePalmaWaveEntry.
[in] | handle | HidPalmaConnectionHandle |
[in] | wave_set | HidPalmaWaveSet |
[in] | unk | Unknown |
[in] | buffer | TransferMemory buffer, must be 0x1000-byte aligned. |
[in] | tmem_size | TransferMemory buffer size, must be 0x1000-byte aligned. |
[in] | size | Actual size of the data in the buffer. |