Changes

Jump to navigation Jump to search
4,440 bytes added ,  20:02, 23 July 2021
no edit summary
Line 966: Line 966:  
| 112 || UnsetHomeButtonAutoPilotState
 
| 112 || UnsetHomeButtonAutoPilotState
 
|-
 
|-
| 120 || DeactivateSleepButton
+
| 120 || [[#DeactivateSleepButton]]
 
|-
 
|-
| 121 || SetSleepButtonAutoPilotState
+
| 121 || [[#SetSleepButtonAutoPilotState]]
 
|-
 
|-
| 122 || UnsetSleepButtonAutoPilotState
+
| 122 || [[#UnsetSleepButtonAutoPilotState]]
 
|-
 
|-
 
| 123 || [1.0.0-9.2.0] DeactivateInputDetector
 
| 123 || [1.0.0-9.2.0] DeactivateInputDetector
Line 1,097: Line 1,097:  
|-
 
|-
 
| 249 || [11.0.0+] ConnectUniquePad
 
| 249 || [11.0.0+] ConnectUniquePad
 +
|-
 +
| 250 || [12.0.0+] IsVirtual
 +
|-
 +
| 251 || [12.0.0+] GetAnalogStickModuleParam
 
|-
 
|-
 
| 301 || [5.0.0-8.1.0] [[#GetAbstractedPadHandles]]
 
| 301 || [5.0.0-8.1.0] [[#GetAbstractedPadHandles]]
Line 1,151: Line 1,155:  
|-
 
|-
 
| 600 || [10.0.0+] ConvertPadState
 
| 600 || [10.0.0+] ConvertPadState
 +
|-
 +
| 650 || [12.0.0+] AddButtonPlayData
 +
|-
 +
| 651 || [12.0.0+] StartButtonPlayData
 +
|-
 +
| 652 || [12.0.0+] StopButtonPlayData
 
|-
 
|-
 
| 2000 || [10.0.0+] DeactivateDigitizer
 
| 2000 || [10.0.0+] DeactivateDigitizer
Line 1,204: Line 1,214:     
This just returns 0.
 
This just returns 0.
 +
 +
== DeactivateSleepButton ==
 +
No input/output.
 +
 +
== SetSleepButtonAutoPilotState ==
 +
Takes an input [[#SleepButtonAutoPilotState]], no output.
 +
 +
== UnsetSleepButtonAutoPilotState ==
 +
No input/output.
    
== StartFirmwareUpdate ==
 
== StartFirmwareUpdate ==
Line 1,468: Line 1,487:  
|-
 
|-
 
| 513 || [3.0.0+] EndPermitVibrationSession
 
| 513 || [3.0.0+] EndPermitVibrationSession
 +
|-
 +
| 514 || [12.0.0+] SendVibrationNotificationPattern
 
|-
 
|-
 
| 520 || EnableHandheldHids
 
| 520 || EnableHandheldHids
Line 2,843: Line 2,864:     
== GetBusHandle ==
 
== GetBusHandle ==
Takes an input u32 [[#NpadIdType]], an u64 [[#BusType]], an u64 [[AM_services|AppletResourceUserId]], returns an output u8 bool and a [[#BusHandle]].
+
Takes an input u32 [[#NpadIdType]], an u64 [[#BusType]] and an u64 [[AM_services|AppletResourceUserId]]. Returns an output bool '''HasHandle''' and a [[#BusHandle]].
   −
The bool indicates whether the [[#BusHandle]] is valid.
+
'''HasHandle''' indicates whether the [[#BusHandle]] is valid.
    
Official sw will assert when [[#BusHandle]] InternalIndex is >=0x11 (>=0x13 with [6.0.0+]). This same check is also done for all funcs using [[#BusHandle]] as input.
 
Official sw will assert when [[#BusHandle]] InternalIndex is >=0x11 (>=0x13 with [6.0.0+]). This same check is also done for all funcs using [[#BusHandle]] as input.
Line 2,852: Line 2,873:     
== IsExternalDeviceConnected ==
 
== IsExternalDeviceConnected ==
Takes an input [[#BusHandle]], returns an output u8 bool.
+
Takes an input [[#BusHandle]]. Returns an output bool '''IsAttached'''.
    
This is not used by sdknso.
 
This is not used by sdknso.
    
== Initialize ==
 
== Initialize ==
Takes an input [[#BusHandle]], an u64 [[AM_services|AppletResourceUserId]], no output.
+
Takes an input [[#BusHandle]] and an u64 [[AM_services|AppletResourceUserId]]. No output.
    
Prior to using this cmd, sdknso handles [[#GetSharedMemoryHandle|sharedmem]] mapping if not done previously.
 
Prior to using this cmd, sdknso handles [[#GetSharedMemoryHandle|sharedmem]] mapping if not done previously.
    
== Finalize ==
 
== Finalize ==
Takes an input [[#BusHandle]], an u64 [[AM_services|AppletResourceUserId]], no output.
+
Takes an input [[#BusHandle]] and an u64 [[AM_services|AppletResourceUserId]]. No output.
    
== EnableExternalDevice ==
 
== EnableExternalDevice ==
Takes an input u8 bool, a [[#BusHandle]], an u64, an u64 [[AM_services|AppletResourceUserId]], no output.
+
Takes an input bool '''IsEnabled''', a [[#BusHandle]], an u64 '''Version''' and an u64 [[AM_services|AppletResourceUserId]]. No output.
   −
sdknso passes value 0x38900050018 (0x3A600050018 with 7.x+) for the u64.
+
sdknso passes value 0x38900050018 (0x3A600050018 with 7.x+) for '''Version'''.
   −
The bool flag indicates whether to enable the device (true = enable, false = disable).  When false, this will use [[#DisableJoyPollingReceiveMode]] if needed.
+
'''IsEnabled''' indicates whether to enable the device (true = enable, false = disable).  When false, this will use [[#DisableJoyPollingReceiveMode]] if needed.
    
== GetExternalDeviceId ==
 
== GetExternalDeviceId ==
Takes an input [[#BusHandle]], returns an output u32 ExternalDeviceId.
+
Takes an input [[#BusHandle]]. Returns an output u32 '''DeviceId'''.
    
== SendCommandAsync ==
 
== SendCommandAsync ==
Takes a type-0x21 input buffer and a [[#BusHandle]], no output.
+
Takes a type-0x21 input buffer and a [[#BusHandle]]. No output.
    
== GetSendCommandAsynceResult ==
 
== GetSendCommandAsynceResult ==
Takes a type-0x22 output buffer and a [[#BusHandle]], returns an output u32.
+
Takes a type-0x22 output buffer and a [[#BusHandle]]. Returns an output u32 '''OutSize'''.
   −
Official sw copies the u32 to an output u64, for the actual output size.
+
Official sw copies '''OutSize''' to an output u64, for the actual output size.
    
== SetEventForSendCommandAsycResult ==
 
== SetEventForSendCommandAsycResult ==
Takes an input [[#BusHandle]], returns an output Event handle with EventClearMode=0.
+
Takes an input [[#BusHandle]]. Returns an output Event handle '''AttachmentDataReceiveEventHandle''' with EventClearMode=0.
    
Official sw with SendAndReceive clears this event (6.x+ sdknso), uses [[#SendCommandAsync]], waits on + clears this event, then uses [[#GetSendCommandAsynceResult]].
 
Official sw with SendAndReceive clears this event (6.x+ sdknso), uses [[#SendCommandAsync]], waits on + clears this event, then uses [[#GetSendCommandAsynceResult]].
    
== GetSharedMemoryHandle ==
 
== GetSharedMemoryHandle ==
No input, returns an output SharedMemory handle.
+
No input. Returns an output SharedMemory handle.
    
The SharedMemory is mapped with size 0x1000 and permissions=R--.
 
The SharedMemory is mapped with size 0x1000 and permissions=R--.
Line 2,920: Line 2,941:     
== EnableJoyPollingReceiveMode ==
 
== EnableJoyPollingReceiveMode ==
Takes a type-0x21 input buffer, a TransferMemory handle, an u32 tmem_size, an u32 [[#JoyPollingMode]], a [[#BusHandle]], no output.
+
Takes a type-0x21 input buffer, a TransferMemory handle, an u32 '''TransferMemorySize''', an u32 [[#JoyPollingMode]] and a [[#BusHandle]]. No output.
    
The TransferMemory is created with an user-specified output buffer, with permissions=R--.
 
The TransferMemory is created with an user-specified output buffer, with permissions=R--.
Line 2,989: Line 3,010:     
== DisableJoyPollingReceiveMode ==
 
== DisableJoyPollingReceiveMode ==
Takes an input [[#BusHandle]], no output.
+
Takes an input [[#BusHandle]]. No output.
    
== SetStatusManagerType ==
 
== SetStatusManagerType ==
Takes an input u32, no output.
+
Takes an input u32 [[#StatusManagerType]]. No output.
    
This is used by sdknso immediately after mapping [[#GetSharedMemoryHandle|sharedmem]] (before [[#Initialize]]) with hard-coded value 0x2.
 
This is used by sdknso immediately after mapping [[#GetSharedMemoryHandle|sharedmem]] (before [[#Initialize]]) with hard-coded value 0x2.
Line 6,086: Line 6,107:  
This is "nn::hid::KeyboardKeySet". This is a BitFlagSet object for [[#KeyboardKey]].
 
This is "nn::hid::KeyboardKeySet". This is a BitFlagSet object for [[#KeyboardKey]].
   −
= KeyboardLockKeyEventSet =
+
= KeyboardKey =
This is "nn::hid::system::KeyboardLockKeyEventSet". This is a BitFlagSet object for [[#KeyboardLockKeyEvent]].
+
This is "nn::hid::KeyboardKey". This is a 256-bit flag.
 
  −
= KeyboardLockKeyEvent =
  −
This is "nn::hid::system::KeyboardLockKeyEvent". This is a 32-bit flag.
      
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 6,096: Line 6,114:  
! Bit
 
! Bit
 
! Description
 
! Description
|-
  −
| 0
  −
| NumLockOn
  −
|-
  −
| 1
  −
| NumLockOff
  −
|-
  −
| 2
  −
| NumLockToggle
  −
|-
  −
| 3
  −
| CapsLockOn
   
|-
 
|-
 
| 4
 
| 4
| CapsLockOff
+
| A
 
|-
 
|-
 
| 5
 
| 5
| CapsLockToggle
+
| B
 
|-
 
|-
 
| 6
 
| 6
| ScrollLockOn
+
| C
 
|-
 
|-
 
| 7
 
| 7
| ScrollLockOff
+
| D
 
|-
 
|-
 
| 8
 
| 8
| ScrollLockToggle
+
| E
|}
  −
 
  −
= BasicXpadButtonSet =
  −
This is "nn::hid::BasicXpadButtonSet". This is a BitFlagSet object for [[#BasicXpadButton]].
  −
 
  −
= HomeButtonSet =
  −
This is "nn::hid::system::HomeButtonSet". This is a BitFlagSet object for [[#HomeButton]].
  −
 
  −
= SleepButtonSet =
  −
This is "nn::hid::system::SleepButtonSet". This is a BitFlagSet object for [[#SleepButton]].
  −
 
  −
= CaptureButtonSet =
  −
This is "nn::hid::system::CaptureButtonSet". This is a BitFlagSet object for [[#CaptureButton]].
  −
 
  −
= NpadButtonSet =
  −
This is "nn::hid::NpadButtonSet". This is a BitFlagSet object for [[#NpadButton]].
  −
 
  −
= NpadButton =
  −
This is "nn::hid::NpadButton". This is a 64-bit flag.
  −
 
  −
{| class="wikitable" border="1"
  −
|-
  −
! Bit
  −
! Description
  −
|-
  −
| 0
  −
| A
  −
|-
  −
| 1
  −
| B
  −
|-
  −
| 2
  −
| X
  −
|-
  −
| 3
  −
| Y
  −
|-
  −
| 4
  −
| StickL
  −
|-
  −
| 5
  −
| StickR
  −
|-
  −
| 6
  −
| L
  −
|-
  −
| 7
  −
| R
  −
|-
  −
| 8
  −
| ZL
   
|-
 
|-
 
| 9
 
| 9
| ZR
+
| F
 
|-
 
|-
 
| 10
 
| 10
| Plus
+
| G
 
|-
 
|-
 
| 11
 
| 11
| Minus
+
| H
 
|-
 
|-
 
| 12
 
| 12
| Left
+
| I
 
|-
 
|-
 
| 13
 
| 13
| Up
+
| J
 
|-
 
|-
 
| 14
 
| 14
| Right
+
| K
 
|-
 
|-
 
| 15
 
| 15
| Down
+
| L
 
|-
 
|-
 
| 16
 
| 16
| StickLLeft
+
| M
 
|-
 
|-
 
| 17
 
| 17
| StickLUp
+
| N
 
|-
 
|-
 
| 18
 
| 18
| StickLRight
+
| O
 
|-
 
|-
 
| 19
 
| 19
| StickLDown
+
| P
 
|-
 
|-
 
| 20
 
| 20
| StickRLeft
+
| Q
 
|-
 
|-
 
| 21
 
| 21
| StickRUp
+
| R
 
|-
 
|-
 
| 22
 
| 22
| StickRRight
+
| S
 
|-
 
|-
 
| 23
 
| 23
| StickRDown
+
| T
 
|-
 
|-
 
| 24
 
| 24
| LeftSL
+
| U
 
|-
 
|-
 
| 25
 
| 25
| LeftSR
+
| V
 
|-
 
|-
 
| 26
 
| 26
| RightSL
+
| W
 
|-
 
|-
 
| 27
 
| 27
| RightSR
+
| X
 
|-
 
|-
 
| 28
 
| 28
| Palma
+
| Y
 
|-
 
|-
 
| 29
 
| 29
|  
+
| Z
 
|-
 
|-
 
| 30
 
| 30
| HandheldLeftB (Left B button on NES controllers in Handheld mode)
+
| D1
|}
+
|-
 
+
| 31
= AnalogStickCalibrationFlagsSet =
+
| D2
This is "nn::hid::detail::AnalogStickCalibrationFlagsSet". This is a BitFlagSet object for [[#AnalogStickCalibrationFlags]].
  −
 
  −
= SixAxisSensorUserCalibrationFlagsSet =
  −
This is "nn::hid::detail::SixAxisSensorUserCalibrationFlagsSet". This is a BitFlagSet object for [[#SixAxisSensorUserCalibrationFlags]].
  −
 
  −
= NpadStyleSet =
  −
This is "nn::hid::NpadStyleSet". This is a BitFlagSet object for [[#NpadStyleTag]].
  −
 
  −
= NpadStyleTag =
  −
This is "nn::hid::NpadStyleTag".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Bits
  −
!  Description
  −
!  Notes
   
|-
 
|-
| 0
+
| 32
| NpadStyleFullKey
+
| D3
| Pro Controller
   
|-
 
|-
| 1
+
| 33
| NpadStyleHandheld
+
| D4
| Joy-Con controller in handheld mode
   
|-
 
|-
| 2
+
| 34
| NpadStyleJoyDual
+
| D5
| Joy-Con controller in dual mode
   
|-
 
|-
| 3
+
| 35
| NpadStyleJoyLeft
+
| D6
| Joy-Con left controller in single mode
   
|-
 
|-
| 4
+
| 36
| NpadStyleJoyRight
+
| D7
| Joy-Con right controller in single mode
   
|-
 
|-
| 5
+
| 37
| NpadStyleGc
+
| D8
| GameCube controller
   
|-
 
|-
| 6
+
| 38
| NpadStylePalma
+
| D9
| Poké Ball Plus controller
   
|-
 
|-
| 7
+
| 39
| NpadStyleLark
+
| D0
| NES/Famicom controller
   
|-
 
|-
| 8
+
| 40
| NpadStyleHandheldLark
+
| Return
| NES/Famicom controller in handheld mode
   
|-
 
|-
| 9
+
| 41
| NpadStyleLucia
+
| Escape
| SNES controller
   
|-
 
|-
| 10-28
+
| 42
| Reserved
+
| Backspace
|
   
|-
 
|-
| 29
+
| 43
| NpadStyleSystemExt
+
| Tab
| Generic external controller
   
|-
 
|-
| 30
+
| 44
| NpadStyleSystem
+
| Space
| Generic controller
+
|-
 +
| 45
 +
| Minus
 +
|-
 +
| 46
 +
| Plus
 +
|-
 +
| 47
 +
| OpenBracket
 +
|-
 +
| 48
 +
| CloseBracket
 +
|-
 +
| 49
 +
| Pipe
 
|-
 
|-
| 31
+
| 50
| Reserved
+
| Tilde
|
  −
|}
  −
 
  −
= NpadDeviceTypeSet =
  −
This is "nn::hid::system::NpadDeviceType". This is a BitFlagSet object for [[#NpadDeviceType]].
  −
 
  −
= NpadSystemPropertiesSet =
  −
This is "nn::hid::detail::NpadSystemPropertiesSet". This is a BitFlagSet object for [[#NpadSystemProperties]].
  −
 
  −
= NpadSystemProperties =
  −
This is "nn::hid::NpadSystemProperties". This is a 64-bit flag.
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Bit
+
| 51
! Description
+
| Semicolon
 
|-
 
|-
| 0
+
| 52
| IsChargingJoyDual
+
| Quote
 
|-
 
|-
| 1
+
| 53
| IsChargingJoyLeft
+
| Backquote
 
|-
 
|-
| 2
+
| 54
| IsChargingJoyRight
+
| Comma
 
|-
 
|-
| 3
+
| 55
| IsPoweredJoyDual
+
| Period
 
|-
 
|-
| 4
+
| 56
| IsPoweredJoyLeft
+
| Slash
 
|-
 
|-
| 5
+
| 57
| IsPoweredJoyRight
+
| CapsLock
 
|-
 
|-
| 9
+
| 58
| IsUnsuportedButtonPressedOnNpadSystem
+
| F1
 
|-
 
|-
| 10
+
| 59
| IsUnsuportedButtonPressedOnNpadSystemExt
+
| F2
 
|-
 
|-
| 11
+
| 60
| IsAbxyButtonOriented
+
| F3
 
|-
 
|-
| 12
+
| 61
| IsSlSrButtonOriented
+
| F4
 
|-
 
|-
| 13
+
| 62
| [4.0.0+] IsPlusAvailable
+
| F5
 
|-
 
|-
| 14
+
| 63
| [4.0.0+] IsMinusAvailable
+
| F6
 
|-
 
|-
| 15
+
| 64
| [8.0.0+] IsDirectionalButtonsAvailable
+
| F7
|}
  −
 
  −
= NpadSystemButtonPropertiesSet =
  −
This is "nn::hid::detail::NpadSystemButtonPropertiesSet". This is a BitFlagSet object for [[#NpadSystemButtonProperties]].
  −
 
  −
= NpadSystemButtonProperties =
  −
This is "nn::hid::NpadSystemButtonProperties". This is a 32-bit flag.
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Bit
+
| 65
! Description
+
| F8
 
|-
 
|-
| 0
+
| 66
| IsUnintendedHomeButtonInputProtectionEnabled
+
| F9
|}
  −
 
  −
= AppletFooterUiAttributesSet =
  −
This is "nn::hid::system::AppletFooterUiAttributesSet". This is a BitFlagSet object for [[#AppletFooterUiAttribute]].
  −
 
  −
= UniquePadType =
  −
This is "nn::hid::system::UniquePadType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Embedded
+
| 67
 +
| F10
 
|-
 
|-
| 1 || FullKeyController
+
| 68
 +
| F11
 
|-
 
|-
| 2 || RightController
+
| 69
 +
| F12
 
|-
 
|-
| 3 || LeftController
+
| 70
 +
| PrintScreen
 
|-
 
|-
| 4 || DebugPadController
+
| 71
|}
+
| ScrollLock
 
  −
= UniquePadInterface =
  −
This is "nn::hid::system::UniquePadInterface".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Embedded
+
| 72
 +
| Pause
 
|-
 
|-
| 1 || Rail
+
| 73
 +
| Insert
 
|-
 
|-
| 2 || Bluetooth
+
| 74
 +
| Home
 
|-
 
|-
| 3 || Usb
+
| 75
|}
+
| PageUp
 
  −
= UniquePadSerialNumber =
  −
This is "nn::hid::system::UniquePadSerialNumber". This is a 0x10 byte value.
  −
 
  −
= UniquePadId =
  −
This is "nn::hid::system::UniquePadId". This is a 8 byte value.
  −
 
  −
= AnalogStickManualCalibrationStage =
  −
This is "nn::hid::system::AnalogStickManualCalibrationStage".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || ReleaseFromRight
+
| 76
 +
| Delete
 
|-
 
|-
| 1 || ReleaseFromBottom
+
| 77
 +
| End
 +
|-
 +
| 78
 +
| PageDown
 +
|-
 +
| 79
 +
| RightArrow
 
|-
 
|-
| 2 || ReleaseFromLeft
+
| 80
 +
| LeftArrow
 
|-
 
|-
| 3 || ReleaseFromTop
+
| 81
 +
| DownArrow
 
|-
 
|-
| 4 || Rotate
+
| 82
 +
| UpArrow
 
|-
 
|-
| 5 || Update
+
| 83
 +
| NumLock
 
|-
 
|-
| 6 || Completed
+
| 84
 +
| NumPadDivide
 
|-
 
|-
| 7 || Clear
+
| 85
 +
| NumPadMultiply
 
|-
 
|-
| 8 || ClearCompleted
+
| 86
|}
+
| NumPadSubtract
 
  −
= SixAxisSensorUserCalibrationStage =
  −
This is "nn::hid::system::SixAxisSensorUserCalibrationStage".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Measuring
+
| 87
 +
| NumPadAdd
 
|-
 
|-
| 1 || Update
+
| 88
 +
| NumPadEnter
 
|-
 
|-
| 2 || Completed
+
| 89
|}
+
| NumPad1
 
  −
= NpadJoyHoldType =
  −
This is "nn::hid::NpadJoyHoldType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Vertical
+
| 90
 +
| NumPad2
 
|-
 
|-
| 1 || Horizontal
+
| 91
|}
+
| NumPad3
 
  −
= NpadJoyDeviceType =
  −
This is "nn::hid::NpadJoyDeviceType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Left
+
| 92
 +
| NumPad4
 
|-
 
|-
| 1 || Right
+
| 93
|}
+
| NumPad5
 
  −
= NpadHandheldActivationMode =
  −
This is "nn::hid::NpadHandheldActivationMode".
  −
 
  −
This controls how many joycons must be attached for handheld mode to be triggered (Dual = 2, Single = 1, None = 0).
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Dual
+
| 94
 +
| NumPad6
 
|-
 
|-
| 1 || Single
+
| 95
 +
| NumPad7
 
|-
 
|-
| 2 || None
+
| 96
|}
+
| NumPad8
 
  −
= NpadJoyAssignmentMode =
  −
This is "nn::hid::NpadJoyAssignmentMode".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Dual
+
| 97
 +
| NumPad9
 
|-
 
|-
| 1 || Single
+
| 98
|}
+
| NumPad0
 
  −
= NpadCommunicationMode =
  −
This is "nn::hid::NpadCommunicationMode".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || 5ms
+
| 99
 +
| NumPadDot
 
|-
 
|-
| 1 || 10ms
+
| 100
 +
| Backslash
 
|-
 
|-
| 2 || 15ms
+
| 101
 +
| Application
 
|-
 
|-
| 3 || Default
+
| 102
|}
+
| Power
 
  −
= AppletDetailedUiType =
  −
This is "nn::hid::system::AppletDetailedUiType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0x00000000 || None
+
| 103
 +
| NumPadEquals
 
|-
 
|-
| 0x01000000 || HandheldNone
+
| 104
 +
| F13
 
|-
 
|-
| 0x02000000 || HandheldJoyConLeftOnly
+
| 105
 +
| F14
 
|-
 
|-
| 0x02000001 || HandheldLarkHvc1Only
+
| 106
 +
| F15
 
|-
 
|-
| 0x02000002 || HandheldLarkNesLeftOnly
+
| 107
 +
| F16
 
|-
 
|-
| 0x03000000 || HandheldJoyConRightOnly
+
| 108
 +
| F17
 
|-
 
|-
| 0x03000001 || HandheldLarkHvc2Only
+
| 109
 +
| F18
 
|-
 
|-
| 0x03000002 || HandheldLarkNesRightOnly
+
| 110
 +
| F19
 
|-
 
|-
| 0x04000000 || HandheldJoyConLeftJoyConRight
+
| 111
 +
| F20
 
|-
 
|-
| 0x04000001 || HandheldJoyConLeftLarkHvc2
+
| 112
 +
| F21
 
|-
 
|-
| 0x04000002 || HandheldJoyConLeftLarkNesRight
+
| 113
 +
| F22
 
|-
 
|-
| 0x04000003 || HandheldLarkHvc1JoyConRight
+
| 114
 +
| F23
 
|-
 
|-
| 0x04000004 || HandheldLarkHvc1LarkHvc2
+
| 115
 +
| F24
 
|-
 
|-
| 0x04000005 || HandheldLarkHvc1LarkNesRight
+
| 133
 +
| NumPadComma
 
|-
 
|-
| 0x04000006 || HandheldLarkNesLeftJoyConRight
+
| 135
 +
| Ro
 
|-
 
|-
| 0x04000007 || HandheldLarkNesLeftLarkHvc2
+
| 136
 +
| KatakanaHiragana
 
|-
 
|-
| 0x04000008 || HandheldLarkNesLeftLarkNesRight
+
| 137
 +
| Yen
 
|-
 
|-
| 0x05000000 || JoyDual
+
| 138
 +
| Henkan
 
|-
 
|-
| 0x06000000 || JoyDualLeftOnly
+
| 139
 +
| Muhenkan
 
|-
 
|-
| 0x07000000 || JoyDualRightOnly
+
| 140
 +
| NumPadCommaPc98
 
|-
 
|-
| 0x08000000 || JoyLeftHorizontal
+
| 144
 +
| HangulEnglish
 
|-
 
|-
| 0x09000000 || JoyLeftVertical
+
| 145
 +
| Hanja
 
|-
 
|-
| 0x0A000000 || JoyRightHorizontal
+
| 146
 +
| Katakana
 
|-
 
|-
| 0x0B000000 || JoyRightVertical
+
| 147
 +
| Hiragana
 
|-
 
|-
| 0x0C000000 || SwitchProController
+
| 148
 +
| ZenkakuHankaku
 
|-
 
|-
| 0x0D000000 || CompatibleProController
+
| 224
 +
| LeftControl
 
|-
 
|-
| 0x0E000000 || CompatibleJoyCon
+
| 225
 +
| LeftShift
 
|-
 
|-
| 0x0F000000 || LarkHvc1
+
| 226
|-
+
| LeftAlt
| 0x10000000 || LarkHvc2
  −
|-
  −
| 0x11000000 || LarkNesLeft
   
|-
 
|-
| 0x12000000 || LarkNesRight
+
| 227
 +
| LeftGui
 
|-
 
|-
| 0x13000000 || LuciaU
+
| 228
 +
| RightControl
 
|-
 
|-
| 0x13000001 || LuciaJ
+
| 229
 +
| RightShift
 
|-
 
|-
| 0x13000002 || LuciaE
+
| 230
|-
+
| RightAlt
| 0x14000000 || Verification
   
|-
 
|-
| 0xFFFFFFFF || Unknown
+
| 231
 +
| RightGui
 
|}
 
|}
   −
= AppletFooterUiType =
+
= KeyboardLockKeyEventSet =
This is "nn::hid::system::AppletFooterUiType".
+
This is "nn::hid::system::KeyboardLockKeyEventSet". This is a BitFlagSet object for [[#KeyboardLockKeyEvent]].
 +
 
 +
= KeyboardLockKeyEvent =
 +
This is "nn::hid::system::KeyboardLockKeyEvent". This is a 32-bit flag.
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
!  Value
  −
!  Description
   
|-
 
|-
| 0 || None
+
! Bit
 +
! Description
 
|-
 
|-
| 1 || HandheldNone
+
| 0
 +
| NumLockOn
 
|-
 
|-
| 2 || HandheldJoyConLeftOnly
+
| 1
 +
| NumLockOff
 
|-
 
|-
| 3 || HandheldJoyConRightOnly
+
| 2
 +
| NumLockToggle
 
|-
 
|-
| 4 || HandheldJoyConLeftJoyConRight
+
| 3
 +
| CapsLockOn
 
|-
 
|-
| 5 || JoyDual
+
| 4
 +
| CapsLockOff
 
|-
 
|-
| 6 || JoyDualLeftOnly
+
| 5
 +
| CapsLockToggle
 
|-
 
|-
| 7 || JoyDualRightOnly
+
| 6
 +
| ScrollLockOn
 
|-
 
|-
| 8 || JoyLeftHorizontal
+
| 7
 +
| ScrollLockOff
 
|-
 
|-
| 9 || JoyLeftVertical
+
| 8
|-
+
| ScrollLockToggle
| 10 || JoyRightHorizontal
+
|}
 +
 
 +
= BasicXpadButtonSet =
 +
This is "nn::hid::BasicXpadButtonSet". This is a BitFlagSet object for [[#BasicXpadButton]].
 +
 
 +
= HomeButtonSet =
 +
This is "nn::hid::system::HomeButtonSet". This is a BitFlagSet object for [[#HomeButton]].
 +
 
 +
= SleepButtonSet =
 +
This is "nn::hid::system::SleepButtonSet". This is a BitFlagSet object for [[#SleepButton]].
 +
 
 +
= CaptureButtonSet =
 +
This is "nn::hid::system::CaptureButtonSet". This is a BitFlagSet object for [[#CaptureButton]].
 +
 
 +
= NpadButtonSet =
 +
This is "nn::hid::NpadButtonSet". This is a BitFlagSet object for [[#NpadButton]].
 +
 
 +
= NpadButton =
 +
This is "nn::hid::NpadButton". This is a 64-bit flag.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Bit
 +
! Description
 
|-
 
|-
| 11 || JoyRightVertical
+
| 0
 +
| A
 
|-
 
|-
| 12 || SwitchProController
+
| 1
 +
| B
 
|-
 
|-
| 13 || CompatibleProController
+
| 2
 +
| X
 
|-
 
|-
| 14 || CompatibleJoyCon
+
| 3
 +
| Y
 
|-
 
|-
| 15 || LarkHvc1
+
| 4
 +
| StickL
 
|-
 
|-
| 16 || LarkHvc2
+
| 5
 +
| StickR
 
|-
 
|-
| 17 || LarkNesLeft
+
| 6
 +
| L
 
|-
 
|-
| 18 || LarkNesRight
+
| 7
 +
| R
 
|-
 
|-
| 19 || Lucia
+
| 8
 +
| ZL
 
|-
 
|-
| 20 || Verification
+
| 9
|}
+
| ZR
 
  −
= NpadIdType =
  −
This is "nn::hid::NpadIdType". This is the controller index used in [[#SharedMemoryFormat|sharedmem]].
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0x0 || No1
+
| 10
 +
| Plus
 
|-
 
|-
| 0x1 || No2
+
| 11
 +
| Minus
 
|-
 
|-
| 0x2 || No3
+
| 12
 +
| Left
 
|-
 
|-
| 0x3 || No4
+
| 13
 +
| Up
 
|-
 
|-
| 0x4 || No5
+
| 14
 +
| Right
 
|-
 
|-
| 0x5 || No6
+
| 15
 +
| Down
 
|-
 
|-
| 0x6 || No7
+
| 16
 +
| StickLLeft
 
|-
 
|-
| 0x7 || No8
+
| 17
 +
| StickLUp
 
|-
 
|-
| 0x10 || Other
+
| 18
 +
| StickLRight
 
|-
 
|-
| 0x20 || Handheld
+
| 19
|}
+
| StickLDown
 
  −
= NpadInterfaceType =
  −
This is "nn::hid::NpadInterfaceType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 1 || Bluetooth
+
| 20
 +
| StickRLeft
 
|-
 
|-
| 2 || Rail
+
| 21
 +
| StickRUp
 
|-
 
|-
| 3 || USB
+
| 22
 +
| StickRRight
 
|-
 
|-
| 4 || Unknown
+
| 23
|}
+
| StickRDown
 
+
|-
= NpadLarkType =
+
| 24
This is "nn::hid::NpadLarkType".
+
| LeftSL
 
+
|-
{| class="wikitable" border="1"
+
| 25
!  Value
+
| LeftSR
!  Description
   
|-
 
|-
| 0 || Invalid
+
| 26
 +
| RightSL
 
|-
 
|-
| 1 || H1
+
| 27
 +
| RightSR
 
|-
 
|-
| 2 || H2
+
| 28
 +
| Palma
 
|-
 
|-
| 3 || NL
+
| 29
 +
|  
 
|-
 
|-
| 4 || NR
+
| 30
 +
| HandheldLeftB (Left B button on NES controllers in Handheld mode)
 
|}
 
|}
   −
= NpadLuciaType =
+
= AnalogStickCalibrationFlagsSet =
This is "nn::hid::NpadLuciaType".
+
This is "nn::hid::detail::AnalogStickCalibrationFlagsSet". This is a BitFlagSet object for [[#AnalogStickCalibrationFlags]].
 +
 
 +
= SixAxisSensorUserCalibrationFlagsSet =
 +
This is "nn::hid::detail::SixAxisSensorUserCalibrationFlagsSet". This is a BitFlagSet object for [[#SixAxisSensorUserCalibrationFlags]].
 +
 
 +
= NpadStyleSet =
 +
This is "nn::hid::NpadStyleSet". This is a BitFlagSet object for [[#NpadStyleTag]].
 +
 
 +
= NpadStyleTag =
 +
This is "nn::hid::NpadStyleTag".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Value
+
Bits
 
!  Description
 
!  Description
 +
!  Notes
 
|-
 
|-
| 0 || Invalid
+
| 0
 +
| NpadStyleFullKey
 +
| Pro Controller
 
|-
 
|-
| 1 || J
+
| 1
 +
| NpadStyleHandheld
 +
| Joy-Con controller in handheld mode
 
|-
 
|-
| 2 || E
+
| 2
 +
| NpadStyleJoyDual
 +
| Joy-Con controller in dual mode
 
|-
 
|-
| 3 || U
+
| 3
|}
+
| NpadStyleJoyLeft
 
+
| Joy-Con left controller in single mode
= GestureDirection =
  −
This is "nn::hid::GestureDirection".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || None
+
| 4
 +
| NpadStyleJoyRight
 +
| Joy-Con right controller in single mode
 
|-
 
|-
| 1 || Left
+
| 5
 +
| NpadStyleGc
 +
| GameCube controller
 
|-
 
|-
| 2 || Up
+
| 6
 +
| NpadStylePalma
 +
| Poké Ball Plus controller
 
|-
 
|-
| 3 || Right
+
| 7
 +
| NpadStyleLark
 +
| NES/Famicom controller
 
|-
 
|-
| 4 || Down
+
| 8
|}
+
| NpadStyleHandheldLark
 
+
| NES/Famicom controller in handheld mode
= GestureType =
  −
This is "nn::hid::GestureType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Idle
+
| 9
 +
| NpadStyleLucia
 +
| SNES controller
 
|-
 
|-
| 1 || Complete
+
| 10-28
 +
| Reserved
 +
|
 
|-
 
|-
| 2 || Cancel
+
| 29
 +
| NpadStyleSystemExt
 +
| Generic external controller
 
|-
 
|-
| 3 || Touch
+
| 30
 +
| NpadStyleSystem
 +
| Generic controller
 
|-
 
|-
| 4 || Press
+
| 31
|-
+
| Reserved
| 5 || Tap
+
|
|-
  −
| 6 || Pan
  −
|-
  −
| 7 || Swipe
  −
|-
  −
| 8 || Pinch
  −
|-
  −
| 9 || Rotate
   
|}
 
|}
   −
= DeviceHandle =
+
= NpadDeviceTypeSet =
This is "nn::xcd::DeviceHandle". This is a 8 byte value.
+
This is "nn::hid::system::NpadDeviceType". This is a BitFlagSet object for [[#NpadDeviceType]].
 +
 
 +
= NpadSystemPropertiesSet =
 +
This is "nn::hid::detail::NpadSystemPropertiesSet". This is a BitFlagSet object for [[#NpadSystemProperties]].
   −
= DeviceType =
+
= NpadSystemProperties =
This is "nn::hid::system::DeviceType".
+
This is "nn::hid::NpadSystemProperties". This is a 64-bit flag.
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
! Bits
+
|-
! Description
+
! Bit
 +
! Description
 
|-
 
|-
 
| 0
 
| 0
| FullKey
+
| IsChargingJoyDual
 
|-
 
|-
 
| 1
 
| 1
| DebugPad
+
| IsChargingJoyLeft
 
|-
 
|-
 
| 2
 
| 2
| HandheldLeft
+
| IsChargingJoyRight
 
|-
 
|-
 
| 3
 
| 3
| HandheldRight
+
| IsPoweredJoyDual
 
|-
 
|-
 
| 4
 
| 4
| JoyLeft
+
| IsPoweredJoyLeft
 
|-
 
|-
 
| 5
 
| 5
| JoyRight
+
| IsPoweredJoyRight
|-
  −
| 6
  −
| Palma
  −
|-
  −
| 7
  −
| LarkHvcLeft
  −
|-
  −
| 8
  −
| LarkHvcRight
   
|-
 
|-
 
| 9
 
| 9
| LarkNesLeft
+
| IsUnsuportedButtonPressedOnNpadSystem
 
|-
 
|-
 
| 10
 
| 10
| LarkNesRight
+
| IsUnsuportedButtonPressedOnNpadSystemExt
 
|-
 
|-
 
| 11
 
| 11
| HandheldLarkHvcLeft
+
| IsAbxyButtonOriented
 
|-
 
|-
 
| 12
 
| 12
| HandheldLarkHvcRight
+
| IsSlSrButtonOriented
 
|-
 
|-
 
| 13
 
| 13
| HandheldLarkNesLeft
+
| [4.0.0+] IsPlusAvailable
 
|-
 
|-
 
| 14
 
| 14
| HandheldLarkNesRight
+
| [4.0.0+] IsMinusAvailable
 
|-
 
|-
 
| 15
 
| 15
| Lucia
+
| [8.0.0+] IsDirectionalButtonsAvailable
 +
|}
 +
 
 +
= NpadSystemButtonPropertiesSet =
 +
This is "nn::hid::detail::NpadSystemButtonPropertiesSet". This is a BitFlagSet object for [[#NpadSystemButtonProperties]].
 +
 
 +
= NpadSystemButtonProperties =
 +
This is "nn::hid::NpadSystemButtonProperties". This is a 32-bit flag.
 +
 
 +
{| class="wikitable" border="1"
 
|-
 
|-
| 16-30
+
! Bit
| Reserved
+
! Description
 
|-
 
|-
| 31
+
| 0
| System
+
| IsUnintendedHomeButtonInputProtectionEnabled
 
|}
 
|}
   −
= DeviceTypeInternal =
+
= AppletFooterUiAttributesSet =
This is "nn::hid::detail::DeviceTypeInternal".
+
This is "nn::hid::system::AppletFooterUiAttributesSet". This is a BitFlagSet object for [[#AppletFooterUiAttribute]].
 +
 
 +
= UniquePadType =
 +
This is "nn::hid::system::UniquePadType".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Bits
+
Value
 
!  Description
 
!  Description
 
|-
 
|-
| 0-7
+
| 0 || Embedded
| BIT(N*4+0) = Pro Controller, BIT(N*4+1) = Joy-Con Left, BIT(N*4+2) = Joy-Con Right, BIT(N*4+3) = invalid. Where N is 0-1.
   
|-
 
|-
| 8-10
+
| 1 || FullKeyController
| Pro Controller
   
|-
 
|-
| 11
+
| 2 || RightController
| Famicom left controller
   
|-
 
|-
| 12
+
| 3 || LeftController
| Famicom right controller (with microphone)
   
|-
 
|-
| 13
+
| 4 || DebugPadController
| NES left controller
+
|}
|-
+
 
| 14
+
= UniquePadInterface =
| NES right controller
+
This is "nn::hid::system::UniquePadInterface".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 15-16
+
| 0 || Embedded
| Invalid
   
|-
 
|-
| 17
+
| 1 || Rail
| Generic external controller
   
|-
 
|-
| 18-20
+
| 2 || Bluetooth
| Invalid
   
|-
 
|-
| 21-23
+
| 3 || Usb
| Generic controller
   
|}
 
|}
   −
[9.0.0+] This is "nn::hidtypes::DeviceType".
+
= UniquePadSerialNumber =
 +
This is "nn::hid::system::UniquePadSerialNumber". This is a 0x10 byte value.
 +
 
 +
= UniquePadId =
 +
This is "nn::hid::system::UniquePadId". This is a 8 byte value.
 +
 
 +
= AnalogStickManualCalibrationStage =
 +
This is "nn::hid::system::AnalogStickManualCalibrationStage".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Value
 
!  Value
!  [[#DeviceType|DeviceType]]
  −
!  [[#UniquePadType|UniquePadType]]
   
!  Description
 
!  Description
 
|-
 
|-
| 1 || JoyRight, HandheldRight || JoyRight || Joy-Con right controller
+
| 0 || ReleaseFromRight
 
|-
 
|-
| 2 || JoyLeft, HandheldLeft || JoyLeft || Joy-Con left controller
+
| 1 || ReleaseFromBottom
 
|-
 
|-
| 3 || FullKey || FullKey || Pro Controller
+
| 2 || ReleaseFromLeft
 
|-
 
|-
| 4 || JoyLeft || JoyLeft || Reserved
+
| 3 || ReleaseFromTop
 
|-
 
|-
| 5 || JoyRight || JoyRight || Reserved
+
| 4 || Rotate
 
|-
 
|-
| 6 || FullKey || FullKey || Reserved
+
| 5 || Update
 
|-
 
|-
| 7 || LarkHvcLeft, HandheldLarkHvcLeft || JoyLeft || Famicom left controller
+
| 6 || Completed
 
|-
 
|-
| 8 || LarkHvcRight, HandheldLarkHvcRight || JoyRight || Famicom right controller (with microphone)
+
| 7 || Clear
 
|-
 
|-
| 9 || LarkNesLeft, HandheldLarkNesLeft || JoyLeft || NES left controller
+
| 8 || ClearCompleted
 +
|}
 +
 
 +
= SixAxisSensorUserCalibrationStage =
 +
This is "nn::hid::system::SixAxisSensorUserCalibrationStage".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 10 || LarkNesRight, HandheldLarkNesRight || JoyRight || NES right controller
+
| 0 || Measuring
 
|-
 
|-
| 11 || Lucia || FullKey || SNES controller
+
| 1 || Update
 
|-
 
|-
| 12 || Palma || Other || Poké Ball Plus controller
+
| 2 || Completed
 +
|}
 +
 
 +
= NpadJoyHoldType =
 +
This is "nn::hid::NpadJoyHoldType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 13 || FullKey || FullKey || Gc controller
+
| 0 || Vertical
 
|-
 
|-
| 14 || HandheldLeft || JoyLeft || Reserved
+
| 1 || Horizontal
 +
|}
 +
 
 +
= NpadJoyDeviceType =
 +
This is "nn::hid::NpadJoyDeviceType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 15 || FullKey || FullKey || Reserved
+
| 0 || Left
 
|-
 
|-
| 16 || FullKey || FullKey || Reserved
+
| 1 || Right
 +
|}
 +
 
 +
= NpadHandheldActivationMode =
 +
This is "nn::hid::NpadHandheldActivationMode".
 +
 
 +
This controls how many joycons must be attached for handheld mode to be triggered (Dual = 2, Single = 1, None = 0).
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 17 || DebugPad || DebugPad || Debug controller
+
| 0 || Dual
 
|-
 
|-
| 18 || HandheldRight || JoyRight || Reserved
+
| 1 || Single
 
|-
 
|-
| 19 || System || Other || Unknown (has [[#NpadStyleTag|NpadFullKey]] style tag)
+
| 2 || None
|-
  −
| 20 || System || Other || Unknown (has [[#NpadStyleTag|NpadJoyDual]] style tag)
  −
|-
  −
| 21 || System || Other || Unknown (has [[#NpadStyleTag|NpadJoyDual]] style tag)
   
|}
 
|}
   −
= NpadPowerInfo =
+
= NpadJoyAssignmentMode =
This is "nn::hid::system::NpadPowerInfo".
+
This is "nn::hid::NpadJoyAssignmentMode".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
! Offset
+
| 0 || Dual
! Size
  −
! Description
   
|-
 
|-
| 0x0
+
| 1 || Single
| 0x1
  −
| IsPowered
  −
|-
  −
| 0x1
  −
| 0x1
  −
| IsCharging
  −
|-
  −
| 0x2
  −
| 0x6
  −
| Reserved
  −
|-
  −
| 0x8
  −
| 0x6
  −
| [[#BatteryLevel|BatteryLevel]]
   
|}
 
|}
   −
= BatteryLevel =
+
= NpadCommunicationMode =
This is "nn::hid::system::NpadBatteryLevel". This is a 4 byte value.
+
This is "nn::hid::NpadCommunicationMode".
 
  −
= ConsoleSixAxisSensorHandle =
  −
This is "nn::hid::ConsoleSixAxisSensorHandle". This is a 4-byte struct with 4-byte alignment.
  −
 
  −
sdknso GetConsoleSixAxisSensorHandle always returns a handle with value 0x13.
      
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
! Offset || Size || Description
+
| 0 || 5ms
 
|-
 
|-
| 0x0 || 0x4 || TypeValue
+
| 1 || 10ms
 
|-
 
|-
| 0x0 || 0x1 ||  
+
| 2 || 15ms
 
|-
 
|-
| 0x1 || 0x1 ||  
+
| 3 || Default
 
|}
 
|}
   −
= SixAxisSensorHandle =
+
= AppletDetailedUiType =
This is "nn::hid::SixAxisSensorHandle". This is a 4-byte struct with 4-byte alignment.
+
This is "nn::hid::system::AppletDetailedUiType".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
! Offset || Size || Description
+
| 0x00000000 || None
 +
|-
 +
| 0x01000000 || HandheldNone
 
|-
 
|-
| 0x0 || 0x4 || TypeValue
+
| 0x02000000 || HandheldJoyConLeftOnly
 
|-
 
|-
| 0x0 || 0x1 || NpadStyleIndex
+
| 0x02000001 || HandheldLarkHvc1Only
 
|-
 
|-
| 0x1 || 0x1 || [[#NpadIdType|PlayerNumber]]
+
| 0x02000002 || HandheldLarkNesLeftOnly
 
|-
 
|-
| 0x2 || 0x1 || DeviceIdx
+
| 0x03000000 || HandheldJoyConRightOnly
|}
  −
 
  −
= VibrationDeviceHandle =
  −
This is "nn::hid::VibrationDeviceHandle". This is a 4-byte struct with 4-byte alignment.
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Offset || Size || Description
+
| 0x03000001 || HandheldLarkHvc2Only
 
|-
 
|-
| 0x0 || 0x4 || TypeValue
+
| 0x03000002 || HandheldLarkNesRightOnly
 
|-
 
|-
| 0x0 || 0x1 || NpadStyleIndex
+
| 0x04000000 || HandheldJoyConLeftJoyConRight
 
|-
 
|-
| 0x1 || 0x1 || [[#NpadIdType|PlayerNumber]]
+
| 0x04000001 || HandheldJoyConLeftLarkHvc2
 
|-
 
|-
| 0x2 || 0x1 || DeviceIdx
+
| 0x04000002 || HandheldJoyConLeftLarkNesRight
|}
  −
 
  −
= VibrationDeviceInfo =
  −
This is "nn::hid::VibrationDeviceInfo" / "nn::hid::VibrationDeviceInfoForIpc". This is a 0x8-byte struct.
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Offset || Size || Description
+
| 0x04000003 || HandheldLarkHvc1JoyConRight
 
|-
 
|-
| 0x0 || 0x4 || [[#VibrationDeviceType|DeviceType]]
+
| 0x04000004 || HandheldLarkHvc1LarkHvc2
 
|-
 
|-
| 0x4 || 0x4 || [[#VibrationDevicePosition|Position]]
+
| 0x04000005 || HandheldLarkHvc1LarkNesRight
|}
  −
 
  −
= VibrationDeviceType =
  −
This is "nn::hid::VibrationDeviceType".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Unknown
+
| 0x04000006 || HandheldLarkNesLeftJoyConRight
 
|-
 
|-
| 1 || LinearResonantActuator
+
| 0x04000007 || HandheldLarkNesLeftLarkHvc2
 
|-
 
|-
| 2 || GcErm
+
| 0x04000008 || HandheldLarkNesLeftLarkNesRight
|}
  −
 
  −
= VibrationDevicePosition =
  −
This is "nn::hid::VibrationDevicePosition".
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || None
+
| 0x05000000 || JoyDual
 
|-
 
|-
| 1 || Left
+
| 0x06000000 || JoyDualLeftOnly
 
|-
 
|-
| 2 || Right
+
| 0x07000000 || JoyDualRightOnly
|}
+
|-
 
+
| 0x08000000 || JoyLeftHorizontal
= VibrationValue =
+
|-
This is "nn::hid::VibrationValue". This is a 0x10-byte struct, which contains 4 float values.
+
| 0x09000000 || JoyLeftVertical
 
+
|-
{| class="wikitable" border="1"
+
| 0x0A000000 || JoyRightHorizontal
 +
|-
 +
| 0x0B000000 || JoyRightVertical
 +
|-
 +
| 0x0C000000 || SwitchProController
 +
|-
 +
| 0x0D000000 || CompatibleProController
 +
|-
 +
| 0x0E000000 || CompatibleJoyCon
 +
|-
 +
| 0x0F000000 || LarkHvc1
 +
|-
 +
| 0x10000000 || LarkHvc2
 +
|-
 +
| 0x11000000 || LarkNesLeft
 +
|-
 +
| 0x12000000 || LarkNesRight
 
|-
 
|-
! Offset
+
| 0x13000000 || LuciaU
! Size
  −
! Description
   
|-
 
|-
| 0x0
+
| 0x13000001 || LuciaJ
| 0x4
  −
| AmplitudeLow
   
|-
 
|-
| 0x4
+
| 0x13000002 || LuciaE
| 0x4
  −
| FrequencyLow
   
|-
 
|-
| 0x8
+
| 0x14000000 || Verification
| 0x4
  −
| AmplitudeHigh
   
|-
 
|-
| 0xC
+
| 0xFFFFFFFF || Unknown
| 0x4
  −
| FrequencyHigh
   
|}
 
|}
   −
= VibrationGcErmCommand =
+
= AppletFooterUiType =
This is "nn::hid::VibrationGcErmCommand".
+
This is "nn::hid::system::AppletFooterUiType".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Value
 
!  Value
!  Name
   
!  Description
 
!  Description
 
|-
 
|-
| 0 || Stop || Stops the vibration with a decay phase.
+
| 0 || None
 
|-
 
|-
| 1 || Start || Starts the vibration.
+
| 1 || HandheldNone
 +
|-
 +
| 2 || HandheldJoyConLeftOnly
 +
|-
 +
| 3 || HandheldJoyConRightOnly
 +
|-
 +
| 4 || HandheldJoyConLeftJoyConRight
 +
|-
 +
| 5 || JoyDual
 +
|-
 +
| 6 || JoyDualLeftOnly
 +
|-
 +
| 7 || JoyDualRightOnly
 +
|-
 +
| 8 || JoyLeftHorizontal
 +
|-
 +
| 9 || JoyLeftVertical
 +
|-
 +
| 10 || JoyRightHorizontal
 +
|-
 +
| 11 || JoyRightVertical
 +
|-
 +
| 12 || SwitchProController
 +
|-
 +
| 13 || CompatibleProController
 +
|-
 +
| 14 || CompatibleJoyCon
 +
|-
 +
| 15 || LarkHvc1
 +
|-
 +
| 16 || LarkHvc2
 +
|-
 +
| 17 || LarkNesLeft
 
|-
 
|-
| 2 || StopHard || Stops the vibration immediately, with no decay phase.
+
| 18 || LarkNesRight
|}
  −
 
  −
= AccelerometerPlayMode =
  −
This is "nn::hid::debug::AccelerometerPlayMode" (pre-10.0.0 this is "nn::hid::AccelerometerPlayMode").
  −
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Loose
+
| 19 || Lucia
 
|-
 
|-
| 1 || Tight
+
| 20 || Verification
 
|}
 
|}
   −
= GyroscopeZeroDriftMode =
+
= NpadIdType =
This is "nn::hid::GyroscopeZeroDriftMode".
+
This is "nn::hid::NpadIdType". This is the controller index used in [[#SharedMemoryFormat|sharedmem]].
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 7,121: Line 7,099:  
!  Description
 
!  Description
 
|-
 
|-
| 0 || Loose
+
| 0x0 || No1
 
|-
 
|-
| 1 || Standard
+
| 0x1 || No2
 
|-
 
|-
| 2 || Tight
+
| 0x2 || No3
 +
|-
 +
| 0x3 || No4
 +
|-
 +
| 0x4 || No5
 +
|-
 +
| 0x5 || No6
 +
|-
 +
| 0x6 || No7
 +
|-
 +
| 0x7 || No8
 +
|-
 +
| 0x10 || Other
 +
|-
 +
| 0x20 || Handheld
 
|}
 
|}
   −
= PalmaConnectionHandle =
+
= NpadInterfaceType =
This is "nn::hid::PalmaConnectionHandle". This is a 0x8-byte struct with 8-byte alignment.
+
This is "nn::hid::NpadInterfaceType".
 
  −
= PalmaOperationInfo =
  −
This is "nn::hid::PalmaOperationInfo". This is a 0x148-byte struct.
      
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
! Offset || Size || Description
+
| 1 || Bluetooth
 
|-
 
|-
| 0x0 || 0x4 || [[#PalmaOperationType]]
+
| 2 || Rail
 
|-
 
|-
| 0x4 || 0x4 || Result
+
| 3 || USB
 
|-
 
|-
| 0x8 || 0x140 || Buffer for [[#GetPalmaOperationInfo]].
+
| 4 || Unknown
 
|}
 
|}
   −
= PalmaOperationType =
+
= NpadLarkType =
This is "nn::hid::PalmaOperationType".
+
This is "nn::hid::NpadLarkType".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 7,152: Line 7,143:  
!  Description
 
!  Description
 
|-
 
|-
| 0 || PlayActivity
+
| 0 || Invalid
 
|-
 
|-
| 1 || SetFrModeType
+
| 1 || H1
 
|-
 
|-
| 2 || ReadStep
+
| 2 || H2
 
|-
 
|-
| 3 || EnableStep
+
| 3 || NL
 
|-
 
|-
| 4 || ResetStep
+
| 4 || NR
 +
|}
 +
 
 +
= NpadLuciaType =
 +
This is "nn::hid::NpadLuciaType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
| 5 || ReadApplicationSection
+
| 0 || Invalid
 
|-
 
|-
| 6 || WriteApplicationSection
+
| 1 || J
 
|-
 
|-
| 7 || ReadUniqueCode
+
| 2 || E
 
|-
 
|-
| 8 || SetUniqueCodeInvalid
+
| 3 || U
|-
  −
| 9 || WriteActivityEntry
  −
|-
  −
| 10 || WriteRgbLedPatternEntry
  −
|-
  −
| 11 || WriteWaveEntry
  −
|-
  −
| 12 || ReadDataBaseIdentificationVersion
  −
|-
  −
| 13 || WriteDataBaseIdentificationVersion
  −
|-
  −
| 14 || SuspendFeature
  −
|-
  −
| [[5.1.0]]+ 15 || ReadPlayLog
  −
|-
  −
| [[5.1.0]]+ 16 || ResetPlayLog
   
|}
 
|}
   −
= PalmaFrModeType =
+
= GestureDirection =
This is "nn::hid::PalmaFrModeType".
+
This is "nn::hid::GestureDirection".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 7,194: Line 7,177:  
!  Description
 
!  Description
 
|-
 
|-
| 0 || Off
+
| 0 || None
 
|-
 
|-
| 1 || B01
+
| 1 || Left
 
|-
 
|-
| 2 || B02
+
| 2 || Up
 
|-
 
|-
| 3 || B03
+
| 3 || Right
 
|-
 
|-
| 4 || Downloaded
+
| 4 || Down
 
|}
 
|}
   −
= PalmaApplicationSectionAccessBuffer =
+
= GestureType =
This is "nn::hid::PalmaApplicationSectionAccessBuffer". This is a 0x100-byte struct.
+
This is "nn::hid::GestureType".
 
  −
= PalmaActivityEntry =
  −
This is "nn::hid::PalmaActivityEntry".
      
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 
|-
 
|-
! Offset || Size || Description
+
| 0 || Idle
 
|-
 
|-
| 0x0 || 0x2 || RgbLedPatternIndex.
+
| 1 || Complete
 
|-
 
|-
| 0x2 || 0x2 || Padding
+
| 2 || Cancel
 
|-
 
|-
| 0x4 || 0x4 || [[#PalmaWaveSet|WaveSet]].
+
| 3 || Touch
 
|-
 
|-
| 0x8 || 0x2 || WaveIndex.
+
| 4 || Press
|}
+
|-
 
+
| 5 || Tap
= PalmaWaveSet =
+
|-
This is "nn::hid::PalmaWaveSet".
+
| 6 || Pan
 
  −
{| class="wikitable" border="1"
  −
!  Value
  −
!  Description
   
|-
 
|-
| 0 || Small
+
| 7 || Swipe
 
|-
 
|-
| 1 || Medium
+
| 8 || Pinch
 
|-
 
|-
| 2 || Large
+
| 9 || Rotate
 
|}
 
|}
   −
= PalmaFeature =
+
= DeviceHandle =
This is "nn::hid::PalmaFeature".
+
This is "nn::xcd::DeviceHandle". This is a 8 byte value.
 +
 
 +
= DeviceType =
 +
This is "nn::hid::system::DeviceType".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
|-
+
! Bits
! Bit
+
! Description
! Description
   
|-
 
|-
 
| 0
 
| 0
| FrMode
+
| FullKey
 
|-
 
|-
 
| 1
 
| 1
| RumbleFeedback
+
| DebugPad
 
|-
 
|-
 
| 2
 
| 2
| Step
+
| HandheldLeft
 
|-
 
|-
 
| 3
 
| 3
| MuteSwitch
+
| HandheldRight
 
|-
 
|-
|}
+
| 4
 
+
| JoyLeft
= AbstractedPadState =
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Offset || Size || Description
+
| 5
 +
| JoyRight
 
|-
 
|-
| 0x0 || 0x4 || Type, only 1 bit can be set. Converted to [[#HdlsDeviceInfo]]::type internally by [[#SetAutoPilotVirtualPadState]].
+
| 6
 +
| Palma
 
|-
 
|-
| 0x4 || 0x1 || Flags. [[#SetAutoPilotVirtualPadState]] only uses bit0: when clear it will skip using the rest of the input and run [[#UnsetAutoPilotVirtualPadState]] internally.
+
| 7
 +
| LarkHvcLeft
 
|-
 
|-
| 0x5 || 0x3 || Padding
+
| 8
 +
| LarkHvcRight
 
|-
 
|-
| 0x8 || 0x4 || RGBA Single Body Color
+
| 9
 +
| LarkNesLeft
 +
|-
 +
| 10
 +
| LarkNesRight
 +
|-
 +
| 11
 +
| HandheldLarkHvcLeft
 +
|-
 +
| 12
 +
| HandheldLarkHvcRight
 
|-
 
|-
| 0xC || 0x4 || RGBA Single Buttons Color
+
| 13
 +
| HandheldLarkNesLeft
 
|-
 
|-
| 0x10 || 0x1 || See [[#HiddbgHdlsDeviceInfo]]::[[#NpadInterfaceType]].
+
| 14
 +
| HandheldLarkNesRight
 
|-
 
|-
| 0x11 || 0x3 || Padding
+
| 15
 +
| Lucia
 
|-
 
|-
| 0x14 || 0x24 || [[#HdlsState]]. Unknown if the last 4-bytes are included in this struct, [[#SetAutoPilotVirtualPadState]]/[[#hiddbgGetAbstractedPadsState]] only uses the first 0x20-bytes.
+
| 16-30
 +
| Reserved
 
|-
 
|-
| 0x38 || 0x60 || Unused with [[#SetAutoPilotVirtualPadState]]/[[#GetAbstractedPadsState]].
+
| 31
 +
| System
 
|}
 
|}
   −
Normally the input state is merged with an existing controller selected by Type. However in some cases (BIT(2-5) with type2!=0x2 and BIT(31)) it's detected as a dedicated controller.
+
= DeviceTypeInternal =
 +
This is "nn::hid::detail::DeviceTypeInternal".
   −
Type:
   
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  Bits
 
!  Bits
!  [[#HdlsDeviceInfo]]::type bits
   
!  Description
 
!  Description
!  Notes
   
|-
 
|-
| 0 || 0 || ||
+
| 0-7
 +
| BIT(N*4+0) = Pro Controller, BIT(N*4+1) = Joy-Con Left, BIT(N*4+2) = Joy-Con Right, BIT(N*4+3) = invalid. Where N is 0-1.
 
|-
 
|-
| 1 || 15 || || [[#DeviceType]] |= BIT(1)
+
| 8-10
 +
| Pro Controller
 
|-
 
|-
| 2 || 1 || ||  
+
| 11
 +
| Famicom left controller
 
|-
 
|-
| 3 || 2 || ||  
+
| 12
 +
| Famicom right controller (with microphone)
 
|-
 
|-
| 4 || 1 || ||  
+
| 13
 +
| NES left controller
 
|-
 
|-
| 5 || 2 || ||  
+
| 14
 +
| NES right controller
 
|-
 
|-
| 6 || 3 || ||  
+
| 15-16
 +
| Invalid
 
|-
 
|-
| 7 || 11 || || [[#DeviceType]] |= BIT(11)
+
| 17
 +
| Generic external controller
 
|-
 
|-
| 8 || 12 || || [[#DeviceType]] |= BIT(12)
+
| 18-20
 +
| Invalid
 
|-
 
|-
| 9 || 13 || || [[#DeviceType]] |= BIT(13)
+
| 21-23
 +
| Generic controller
 +
|}
 +
 
 +
[9.0.0+] This is "nn::hidtypes::DeviceType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
[[#DeviceType|DeviceType]]
 +
!  [[#UniquePadType|UniquePadType]]
 +
!  Description
 
|-
 
|-
| 10 || 14 || || [[#DeviceType]] |= BIT(14)
+
| 1 || JoyRight, HandheldRight || JoyRight || Joy-Con right controller
 
|-
 
|-
| 11 || 15 || || [[#DeviceType]] |= BIT(11)
+
| 2 || JoyLeft, HandheldLeft || JoyLeft || Joy-Con left controller
 
|-
 
|-
| 12 || 12 || || [[#DeviceType]] |= BIT(12)
+
| 3 || FullKey || FullKey || Pro Controller
 
|-
 
|-
| 13 || 13 || || [[#DeviceType]] |= BIT(13)
+
| 4 || JoyLeft || JoyLeft || Reserved
 
|-
 
|-
| 14 || 14 || || [[#DeviceType]] |= BIT(14)
+
| 5 || JoyRight || JoyRight || Reserved
 
|-
 
|-
| 15 || 17 || ||  
+
| 6 || FullKey || FullKey || Reserved
 
|-
 
|-
| 31 || 21 || || [[#DeviceType]] = BIT(31)
+
| 7 || LarkHvcLeft, HandheldLarkHvcLeft || JoyLeft || Famicom left controller
 
|-
 
|-
|}
+
| 8 || LarkHvcRight, HandheldLarkHvcRight || JoyRight || Famicom right controller (with microphone)
 
  −
The above "[[#DeviceType]] |=" notes only apply when type2 is 0x2.
  −
 
  −
= DebugPadAutoPilotState =
  −
This is "nn::hid::debug::DebugPadAutoPilotState"
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Offset
+
| 9 || LarkNesLeft, HandheldLarkNesLeft || JoyLeft || NES left controller
! Size
  −
! Description
   
|-
 
|-
| 0x0
+
| 10 || LarkNesRight, HandheldLarkNesRight || JoyRight || NES right controller
| 0x4
  −
| [[#DebugPadAttributeSet|Attributes]]
   
|-
 
|-
| 0x4
+
| 11 || Lucia || FullKey || SNES controller
| 0x4
  −
| [[#DebugPadButtonSet|Buttons]]
   
|-
 
|-
| 0x8
+
| 12 || Palma || Other || Poké Ball Plus controller
| 0x8
  −
| [[#AnalogStickState|AnalogStickL]]
   
|-
 
|-
| 0x10
+
| 13 || FullKey || FullKey || Gc controller
| 0x8
  −
| [[#AnalogStickState|AnalogStickR]]
  −
|}
  −
 
  −
= MouseAutoPilotState =
  −
This is "nn::hid::debug::MouseAutoPilotState".
  −
 
  −
{| class="wikitable" border="1"
   
|-
 
|-
! Offset
+
| 14 || HandheldLeft || JoyLeft || Reserved
! Size
  −
! Description
   
|-
 
|-
| 0x0
+
| 15 || FullKey || FullKey || Reserved
| 0x4
  −
| X
   
|-
 
|-
| 0x4
+
| 16 || FullKey || FullKey || Reserved
| 0x4
  −
| Y
   
|-
 
|-
| 0x8
+
| 17 || DebugPad || DebugPad || Debug controller
| 0x4
  −
| DeltaX
   
|-
 
|-
| 0xC
+
| 18 || HandheldRight || JoyRight || Reserved
| 0x4
  −
| DeltaY
   
|-
 
|-
| 0x10
+
| 19 || System || Other || Unknown (has [[#NpadStyleTag|NpadFullKey]] style tag)
| 0x4
  −
| WheelDelta
   
|-
 
|-
| 0x14
+
| 20 || System || Other || Unknown (has [[#NpadStyleTag|NpadJoyDual]] style tag)
| 0x4
  −
| [[#MouseButtonSet|Buttons]]
   
|-
 
|-
| 0x18
+
| 21 || System || Other || Unknown (has [[#NpadStyleTag|NpadJoyDual]] style tag)
| 0x4
  −
| [[#MouseAttributeSet|Attributes]]
   
|}
 
|}
   −
= KeyboardAutoPilotState =
+
= NpadPowerInfo =
This is "nn::hid::debug::KeyboardAutoPilotState".
+
This is "nn::hid::system::NpadPowerInfo".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 7,405: Line 7,380:  
|-
 
|-
 
| 0x0
 
| 0x0
| 0x8
+
| 0x1
| [[#KeyboardModifierSet|Modifiers]]
+
| IsPowered
|-
+
|-
| 0x8
+
| 0x1
| 0x20
+
| 0x1
| [[#KeyboardKeySet|Keys]]
+
| IsCharging
|}
+
|-
 
+
| 0x2
= HdlsHandle =
+
| 0x6
This is "nn::hid::debug::HdlsHandle". This is a 0x8-byte struct with 8-byte alignment.
+
| Reserved
 
+
|-
= HdlsNpadAssignment =
+
| 0x8
This is a 0x208-byte struct.
+
| 0x6
 
+
| [[#BatteryLevel|BatteryLevel]]
{| class="wikitable" border="1"
+
|}
|-
+
 
! Offset || Size || Description
+
= BatteryLevel =
|-
+
This is "nn::hid::system::NpadBatteryLevel". This is a 4 byte value.
| 0x0 || 0x4 || s32 Total entries
+
 
|-
+
= ConsoleSixAxisSensorHandle =
| 0x4 || 0x4 || Padding
+
This is "nn::hid::ConsoleSixAxisSensorHandle". This is a 4-byte struct with 4-byte alignment.
|-
+
 
| 0x8 || 0x200(0x20*0x10) || Array of [[#HdlsNpadAssignmentEntry]].
+
sdknso GetConsoleSixAxisSensorHandle always returns a handle with value 0x13.
|}
+
 
 
+
{| class="wikitable" border="1"
= HdlsNpadAssignmentEntry =
+
|-
This is a 0x20-byte struct.
+
! Offset || Size || Description
 
+
|-
{| class="wikitable" border="1"
+
| 0x0 || 0x4 || TypeValue
|-
+
|-
! Offset || Size || Description
+
| 0x0 || 0x1 ||
|-
+
|-
| 0x0 || 0x8 || [[#HdlsHandle]]
+
| 0x1 || 0x1 ||
|-
+
|}
| 0x8 || 0x4 || ?
+
 
|-
+
= SixAxisSensorHandle =
| 0xC || 0x4 || ?
+
This is "nn::hid::SixAxisSensorHandle". This is a 4-byte struct with 4-byte alignment.
|-
+
 
| 0x10 || 0x8 || ?
+
{| class="wikitable" border="1"
|-
+
|-
| 0x18 || 0x1 || ?
+
! Offset || Size || Description
|-
+
|-
| 0x19 || 0x7 || Padding
+
| 0x0 || 0x4 || TypeValue
|}
+
|-
 
+
| 0x0 || 0x1 || NpadStyleIndex
= HdlsStateList =
+
|-
This is a 0x408-byte struct.
+
| 0x1 || 0x1 || [[#NpadIdType|PlayerNumber]]
 
+
|-
[9.0.0+] This is a 0x488-byte struct.
+
| 0x2 || 0x1 || DeviceIdx
 
+
|}
{| class="wikitable" border="1"
+
 
|-
+
= VibrationDeviceHandle =
! Offset || Size || Description
+
This is "nn::hid::VibrationDeviceHandle". This is a 4-byte struct with 4-byte alignment.
|-
+
 
| 0x0 || 0x4 || s32 Total entries
+
{| class="wikitable" border="1"
|-
+
|-
| 0x4 || 0x4 || Padding
+
! Offset || Size || Description
|-
+
|-
| 0x8 || <[[#HdlsStateListEntry]] size>*0x10 || Array of [[#HdlsStateListEntry]].
+
| 0x0 || 0x4 || TypeValue
|}
+
|-
 
+
| 0x0 || 0x1 || NpadStyleIndex
This contains a list of all controllers, including non-virtual controllers.
+
|-
 
+
| 0x1 || 0x1 || [[#NpadIdType|PlayerNumber]]
= HdlsStateListEntry =
+
|-
This is a 0x40-byte struct.  
+
| 0x2 || 0x1 || DeviceIdx
 
+
|}
[9.0.0+] This is a 0x48-byte struct.
+
 
 
+
= VibrationDeviceInfo =
{| class="wikitable" border="1"
+
This is "nn::hid::VibrationDeviceInfo" / "nn::hid::VibrationDeviceInfoForIpc". This is a 0x8-byte struct.
|-
+
 
! Offset || Size || Description
+
{| class="wikitable" border="1"
|-
+
|-
| 0x0 || 0x8 || [[#HdlsHandle]]
+
! Offset || Size || Description
|-
+
|-
| 0x8 || [[#HdlsDeviceInfo]] size || [[#HdlsDeviceInfo]]. With [[#ApplyHdlsStateList]] this is only used when creating new devices.
+
| 0x0 || 0x4 || [[#VibrationDeviceType|DeviceType]]
|-
+
|-
| 0x8 + [[#HdlsDeviceInfo]] size, with 8-byte alignment || 0x24 || [[#HdlsState]]
+
| 0x4 || 0x4 || [[#VibrationDevicePosition|Position]]
|-
+
|}
| <Immediately following the above> || 0x4 || Padding
+
 
|}
+
= VibrationDeviceType =
 
+
This is "nn::hid::VibrationDeviceType".
= HdlsDeviceInfo =
+
 
This is a 0x10-byte struct.
+
{| class="wikitable" border="1"
 
+
!  Value
{| class="wikitable" border="1"
+
!  Description
 +
|-
 +
| 0 || Unknown
 +
|-
 +
| 1 || LinearResonantActuator
 +
|-
 +
| 2 || GcErm
 +
|}
 +
 
 +
= VibrationDevicePosition =
 +
This is "nn::hid::VibrationDevicePosition".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || None
 +
|-
 +
| 1 || Left
 +
|-
 +
| 2 || Right
 +
|}
 +
 
 +
= VibrationValue =
 +
This is "nn::hid::VibrationValue". This is a 0x10-byte struct, which contains 4 float values.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| AmplitudeLow
 +
|-
 +
| 0x4
 +
| 0x4
 +
| FrequencyLow
 +
|-
 +
| 0x8
 +
| 0x4
 +
| AmplitudeHigh
 +
|-
 +
| 0xC
 +
| 0x4
 +
| FrequencyHigh
 +
|}
 +
 
 +
= VibrationGcErmCommand =
 +
This is "nn::hid::VibrationGcErmCommand".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Name
 +
!  Description
 +
|-
 +
| 0 || Stop || Stops the vibration with a decay phase.
 +
|-
 +
| 1 || Start || Starts the vibration.
 +
|-
 +
| 2 || StopHard || Stops the vibration immediately, with no decay phase.
 +
|}
 +
 
 +
= AccelerometerPlayMode =
 +
This is "nn::hid::debug::AccelerometerPlayMode" (pre-10.0.0 this is "nn::hid::AccelerometerPlayMode").
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || Loose
 +
|-
 +
| 1 || Tight
 +
|}
 +
 
 +
= GyroscopeZeroDriftMode =
 +
This is "nn::hid::GyroscopeZeroDriftMode".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || Loose
 +
|-
 +
| 1 || Standard
 +
|-
 +
| 2 || Tight
 +
|}
 +
 
 +
= PalmaConnectionHandle =
 +
This is "nn::hid::PalmaConnectionHandle". This is a 0x8-byte struct with 8-byte alignment.
 +
 
 +
= PalmaOperationInfo =
 +
This is "nn::hid::PalmaOperationInfo". This is a 0x148-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x4 || [[#PalmaOperationType]]
 +
|-
 +
| 0x4 || 0x4 || Result
 +
|-
 +
| 0x8 || 0x140 || Buffer for [[#GetPalmaOperationInfo]].
 +
|}
 +
 
 +
= PalmaOperationType =
 +
This is "nn::hid::PalmaOperationType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || PlayActivity
 +
|-
 +
| 1 || SetFrModeType
 +
|-
 +
| 2 || ReadStep
 +
|-
 +
| 3 || EnableStep
 +
|-
 +
| 4 || ResetStep
 +
|-
 +
| 5 || ReadApplicationSection
 +
|-
 +
| 6 || WriteApplicationSection
 +
|-
 +
| 7 || ReadUniqueCode
 +
|-
 +
| 8 || SetUniqueCodeInvalid
 +
|-
 +
| 9 || WriteActivityEntry
 +
|-
 +
| 10 || WriteRgbLedPatternEntry
 +
|-
 +
| 11 || WriteWaveEntry
 +
|-
 +
| 12 || ReadDataBaseIdentificationVersion
 +
|-
 +
| 13 || WriteDataBaseIdentificationVersion
 +
|-
 +
| 14 || SuspendFeature
 +
|-
 +
| [[5.1.0]]+ 15 || ReadPlayLog
 +
|-
 +
| [[5.1.0]]+ 16 || ResetPlayLog
 +
|}
 +
 
 +
= PalmaFrModeType =
 +
This is "nn::hid::PalmaFrModeType".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || Off
 +
|-
 +
| 1 || B01
 +
|-
 +
| 2 || B02
 +
|-
 +
| 3 || B03
 +
|-
 +
| 4 || Downloaded
 +
|}
 +
 
 +
= PalmaApplicationSectionAccessBuffer =
 +
This is "nn::hid::PalmaApplicationSectionAccessBuffer". This is a 0x100-byte struct.
 +
 
 +
= PalmaActivityEntry =
 +
This is "nn::hid::PalmaActivityEntry".
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x2 || RgbLedPatternIndex.
 +
|-
 +
| 0x2 || 0x2 || Padding
 +
|-
 +
| 0x4 || 0x4 || [[#PalmaWaveSet|WaveSet]].
 +
|-
 +
| 0x8 || 0x2 || WaveIndex.
 +
|}
 +
 
 +
= PalmaWaveSet =
 +
This is "nn::hid::PalmaWaveSet".
 +
 
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || Small
 +
|-
 +
| 1 || Medium
 +
|-
 +
| 2 || Large
 +
|}
 +
 
 +
= PalmaFeature =
 +
This is "nn::hid::PalmaFeature".
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Bit
 +
! Description
 +
|-
 +
| 0
 +
| FrMode
 +
|-
 +
| 1
 +
| RumbleFeedback
 +
|-
 +
| 2
 +
| Step
 +
|-
 +
| 3
 +
| MuteSwitch
 +
|-
 +
|}
 +
 
 +
= AbstractedPadState =
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x4 || Type, only 1 bit can be set. Converted to [[#HdlsDeviceInfo]]::type internally by [[#SetAutoPilotVirtualPadState]].
 +
|-
 +
| 0x4 || 0x1 || Flags. [[#SetAutoPilotVirtualPadState]] only uses bit0: when clear it will skip using the rest of the input and run [[#UnsetAutoPilotVirtualPadState]] internally.
 +
|-
 +
| 0x5 || 0x3 || Padding
 +
|-
 +
| 0x8 || 0x4 || RGBA Single Body Color
 +
|-
 +
| 0xC || 0x4 || RGBA Single Buttons Color
 +
|-
 +
| 0x10 || 0x1 || See [[#HiddbgHdlsDeviceInfo]]::[[#NpadInterfaceType]].
 +
|-
 +
| 0x11 || 0x3 || Padding
 +
|-
 +
| 0x14 || 0x24 || [[#HdlsState]]. Unknown if the last 4-bytes are included in this struct, [[#SetAutoPilotVirtualPadState]]/[[#hiddbgGetAbstractedPadsState]] only uses the first 0x20-bytes.
 +
|-
 +
| 0x38 || 0x60 || Unused with [[#SetAutoPilotVirtualPadState]]/[[#GetAbstractedPadsState]].
 +
|}
 +
 
 +
Normally the input state is merged with an existing controller selected by Type. However in some cases (BIT(2-5) with type2!=0x2 and BIT(31)) it's detected as a dedicated controller.
 +
 
 +
Type:
 +
{| class="wikitable" border="1"
 +
!  Bits
 +
!  [[#HdlsDeviceInfo]]::type bits
 +
!  Description
 +
!  Notes
 +
|-
 +
| 0 || 0 || ||
 +
|-
 +
| 1 || 15 || || [[#DeviceType]] |= BIT(1)
 +
|-
 +
| 2 || 1 || ||
 +
|-
 +
| 3 || 2 || ||
 +
|-
 +
| 4 || 1 || ||
 +
|-
 +
| 5 || 2 || ||
 +
|-
 +
| 6 || 3 || ||
 +
|-
 +
| 7 || 11 || || [[#DeviceType]] |= BIT(11)
 +
|-
 +
| 8 || 12 || || [[#DeviceType]] |= BIT(12)
 +
|-
 +
| 9 || 13 || || [[#DeviceType]] |= BIT(13)
 +
|-
 +
| 10 || 14 || || [[#DeviceType]] |= BIT(14)
 +
|-
 +
| 11 || 15 || || [[#DeviceType]] |= BIT(11)
 +
|-
 +
| 12 || 12 || || [[#DeviceType]] |= BIT(12)
 +
|-
 +
| 13 || 13 || || [[#DeviceType]] |= BIT(13)
 +
|-
 +
| 14 || 14 || || [[#DeviceType]] |= BIT(14)
 +
|-
 +
| 15 || 17 || ||
 +
|-
 +
| 31 || 21 || || [[#DeviceType]] = BIT(31)
 +
|-
 +
|}
 +
 
 +
The above "[[#DeviceType]] |=" notes only apply when type2 is 0x2.
 +
 
 +
= DebugPadAutoPilotState =
 +
This is "nn::hid::debug::DebugPadAutoPilotState"
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| [[#DebugPadAttributeSet|Attributes]]
 +
|-
 +
| 0x4
 +
| 0x4
 +
| [[#DebugPadButtonSet|Buttons]]
 +
|-
 +
| 0x8
 +
| 0x8
 +
| [[#AnalogStickState|AnalogStickL]]
 +
|-
 +
| 0x10
 +
| 0x8
 +
| [[#AnalogStickState|AnalogStickR]]
 +
|}
 +
 
 +
= MouseAutoPilotState =
 +
This is "nn::hid::debug::MouseAutoPilotState".
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| X
 +
|-
 +
| 0x4
 +
| 0x4
 +
| Y
 +
|-
 +
| 0x8
 +
| 0x4
 +
| DeltaX
 +
|-
 +
| 0xC
 +
| 0x4
 +
| DeltaY
 +
|-
 +
| 0x10
 +
| 0x4
 +
| WheelDelta
 +
|-
 +
| 0x14
 +
| 0x4
 +
| [[#MouseButtonSet|Buttons]]
 +
|-
 +
| 0x18
 +
| 0x4
 +
| [[#MouseAttributeSet|Attributes]]
 +
|}
 +
 
 +
= KeyboardAutoPilotState =
 +
This is "nn::hid::debug::KeyboardAutoPilotState".
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0
 +
| 0x8
 +
| [[#KeyboardModifierSet|Modifiers]]
 +
|-
 +
| 0x8
 +
| 0x20
 +
| [[#KeyboardKeySet|Keys]]
 +
|}
 +
 
 +
= SleepButtonAutoPilotState =
 +
This is "nn::hid::debug::SleepButtonAutoPilotState". This is a 0x8-byte struct with 8-byte alignment.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x8 || Buttons (only bit0 is used)
 +
|}
 +
 
 +
= PowerInfo =
 +
This is "nn::hidtypes::PowerInfo".
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset
 +
! Size
 +
! Description
 +
|-
 +
| 0x0 || 0x4 || BatteryLevel
 +
|-
 +
| 0x4 || 0x4 || [[#PowerAttribute]]
 +
|}
 +
 
 +
= PowerAttribute =
 +
This is "nn::hidtypes::PowerAttribute". This is a 32-bit flag.
 +
 
 +
{| class="wikitable" border="1"
 +
!  Bits
 +
!  Description
 +
|-
 +
| 0
 +
| IsPowered
 +
|-
 +
| 1
 +
| IsCharging
 +
|}
 +
 
 +
= HdlsAttribute =
 +
This is "nn::hidtypes::HdlsAttribute". This is a 32-bit flag.
 +
 
 +
{| class="wikitable" border="1"
 +
!  Bits
 +
!  Description
 +
|-
 +
| 0
 +
| HasVirtualSixAxisSensorAcceleration
 +
|-
 +
| 1
 +
| HasVirtualSixAxisSensorAngle
 +
|}
 +
 
 +
= HdlsHandle =
 +
This is "nn::hid::debug::HdlsHandle". This is a 0x8-byte struct with 8-byte alignment.
 +
 
 +
= HdlsNpadAssignment =
 +
This is a 0x208-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x4 || s32 Total entries
 +
|-
 +
| 0x4 || 0x4 || Padding
 +
|-
 +
| 0x8 || 0x200(0x20*0x10) || Array of [[#HdlsNpadAssignmentEntry]].
 +
|}
 +
 
 +
= HdlsNpadAssignmentEntry =
 +
This is a 0x20-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x8 || [[#HdlsHandle]]
 +
|-
 +
| 0x8 || 0x4 || ?
 +
|-
 +
| 0xC || 0x4 || ?
 +
|-
 +
| 0x10 || 0x8 || ?
 +
|-
 +
| 0x18 || 0x1 || ?
 +
|-
 +
| 0x19 || 0x7 || Padding
 +
|}
 +
 
 +
= HdlsStateList =
 +
This is a 0x408-byte struct.
 +
 
 +
[9.0.0+] This is a 0x488-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x4 || s32 Total entries
 +
|-
 +
| 0x4 || 0x4 || Padding
 +
|-
 +
| 0x8 || <[[#HdlsStateListEntry]] size>*0x10 || Array of [[#HdlsStateListEntry]].
 +
|}
 +
 
 +
This contains a list of all controllers, including non-virtual controllers.
 +
 
 +
= HdlsStateListEntry =
 +
This is a 0x40-byte struct.  
 +
 
 +
[9.0.0+] This is a 0x48-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x8 || [[#HdlsHandle]]
 +
|-
 +
| 0x8 || [[#HdlsDeviceInfo]] size || [[#HdlsDeviceInfo]]. With [[#ApplyHdlsStateList]] this is only used when creating new devices.
 +
|-
 +
| 0x8 + [[#HdlsDeviceInfo]] size, with 8-byte alignment || 0x24 || [[#HdlsState]]
 +
|-
 +
| <Immediately following the above> || 0x4 || Padding
 +
|}
 +
 
 +
= HdlsDeviceInfo =
 +
This is "nn::hid::debug::HdlsDeviceInfo". This is a 0x10-byte struct.
 +
 
 +
{| class="wikitable" border="1"
 
|-
 
|-
 
! Offset || Size || Description
 
! Offset || Size || Description
Line 7,526: Line 8,006:     
= HdlsState =
 
= HdlsState =
This is a 0x24-byte struct.
+
This is "nn::hid::debug::HdlsState". This is a 0x24-byte struct.
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 7,544: Line 8,024:  
| 0x10 || 0x10(4*2*2) || Joystick data.
 
| 0x10 || 0x10(4*2*2) || Joystick data.
 
|-
 
|-
| 0x20 || 0x1 || Unused for input. Set with output from [[#DumpHdlsStates]] (zero in some cases).
+
| 0x20 || 0x1 || Indicator. Unused for input. Set with output from [[#DumpHdlsStates]] (zero in some cases).
 
|-
 
|-
 
| 0x21 || 0x3 || Padding
 
| 0x21 || 0x3 || Padding
 
|}
 
|}
   −
[9.0.0+]:
+
[9.0.0+] (0x28-bytes):
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
 
! Offset || Size || Description
 
! Offset || Size || Description
 
|-
 
|-
| 0x0 || 0x4 || BatteryLevel for the main PowerInfo.
+
| 0x0 || 0x8 || [[#PowerInfo]]
 +
|-
 +
| 0x8 || 0x8 || [[#NpadButton|Buttons]], masked with 0xfffffffff00fffff. See above table regarding HOME/Capture buttons.
 
|-
 
|-
| 0x4 || 0x4 || Flags. Used to set the main PowerInfo for [[#NpadSystemProperties]]. Bit0 -> IsPowered, bit1 -> IsCharging.
+
| 0x10 || 0x10(4*2*2) || Joystick data.
 +
|-
 +
| 0x20 || 0x1 || Indicator. Unused for input. Set with output from [[#DumpHdlsStates]] (zero in some cases).
 +
|-
 +
| 0x21 || 0x7 || Padding
 +
|}
 +
 
 +
[12.0.0+] (0x40-bytes):
 +
{| class="wikitable" border="1"
 +
|-
 +
! Offset || Size || Description
 +
|-
 +
| 0x0 || 0x8 || [[#PowerInfo]]
 
|-
 
|-
 
| 0x8 || 0x8 || [[#NpadButton|Buttons]], masked with 0xfffffffff00fffff. See above table regarding HOME/Capture buttons.
 
| 0x8 || 0x8 || [[#NpadButton|Buttons]], masked with 0xfffffffff00fffff. See above table regarding HOME/Capture buttons.
Line 7,562: Line 8,056:  
| 0x10 || 0x10(4*2*2) || Joystick data.
 
| 0x10 || 0x10(4*2*2) || Joystick data.
 
|-
 
|-
| 0x20 || 0x1 || Unused for input. Set with output from [[#DumpHdlsStates]] (zero in some cases).
+
| 0x20 || 0xC || VirtualSixAxisSensorAcceleration
 +
|-
 +
| 0x2C || 0xC || VirtualSixAxisSensorAngle
 +
|-
 +
| 0x38 || 0x4 || [[#HdlsAttribute]]
 +
|-
 +
| 0x3C || 0x1 || Indicator. Unused for input.
 
|-
 
|-
| 0x21 || 0x3 || Padding
+
| 0x3D || 0x3 || Padding
 
|}
 
|}
   Line 8,607: Line 9,107:  
| 1 || RightJoyRail
 
| 1 || RightJoyRail
 
|-
 
|-
| 2 || [6.0.0+] RightLarkRail (for microphone)
+
| 2 || [6.0.0+] InternalBus (for Lark microphone)
 
|}
 
|}
   Line 8,625: Line 9,125:     
Other values causes [[#EnableJoyPollingReceiveMode]] to assert.
 
Other values causes [[#EnableJoyPollingReceiveMode]] to assert.
 +
 +
= StatusManagerType =
 +
This is "nn::hidbus::detail::StatusManagerType".
 +
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || None
 +
|-
 +
| 1 || 16
 +
|-
 +
| 2 || 32
 +
|}
    
= ExternalDevices =
 
= ExternalDevices =

Navigation menu