Changes

Jump to navigation Jump to search
no edit summary
|-
| 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
|}
= HdlsDeviceInfo =
This is "nn::hid::debug::HdlsDeviceInfo". This is a 0x10-byte struct.
{| class="wikitable" border="1"
= HdlsState =
This is "nn::hid::debug::HdlsState". This is a 0x24-byte struct.
{| class="wikitable" border="1"
! Offset || Size || Description
|-
| 0x0 || 0x4 0x8 || BatteryLevel for the main PowerInfo.|-| 0x4 || 0x4 || Flags. Used to set the main PowerInfo for [[#NpadSystemPropertiesPowerInfo]]. Bit0 -> IsPowered, bit1 -> IsCharging.
|-
| 0x8 || 0x8 || [[#NpadButton|Buttons]], masked with 0xfffffffff00fffff. See above table regarding HOME/Capture buttons.
[12.0.0+] (0x0x40-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.|-| 0x10 || 0x10(4*2*2) || Joystick data.|-| 0x20 || 0xC || VirtualSixAxisSensorAcceleration|-| 0x2C || 0xC || VirtualSixAxisSensorAngle|-| 0x38 || 0x4 || [[#HdlsAttribute]]|-| 0x3C || 0x1 || Indicator|-| 0x3D || 0x3 || Padding|}
= DebugRegisteredDevice =

Navigation menu