Open main menu

Nintendo Switch Brew β

Changes

HID services

66 bytes added, 13 September
no edit summary
== GetUniquePadDeviceTypeSetInternal ==
Takes an input u64 '''UniquePadId''', returns a "nn::hid::detail::DeviceTypeInternal". The output is an u32. [9.0.0+[#DeviceTypeInternal]] The output is an u8 "nn::hidtypes::DeviceType".
== GetAbstractedPadHandles ==
! Offset || Size || Description
|-
| 0x0 || 0x4 || Only one bit can be set, see below.[[#DeviceTypeInternal]]
|-
| 0x4 || 0x4 || RGBA Single Body Color
! Offset || Size || Description
|-
| 0x0 || 0x1 || Type value, must match certain values (not used with the below table).[[#DeviceTypeInternal]]
|-
| 0x1 || 0x1 || [[#NpadInterfaceType]]. Similar to the field from the old struct.
This is a 0x10-byte struct. [9.0.0+] This is a 0x14-byte struct.
== DeviceTypeInternal ==This is an u32 "nn::hid::detail::DeviceTypeInternal". [9.0.0+] This an u8 "nn::hidtypes::DeviceType". Bits for the above type field"nn::hid::detail::DeviceTypeInternal", only 1 bit can be set:
{| class="wikitable" border="1"
|}
u8 values for "nn::hidtypes::DeviceType", must match one of the above type fieldthese values:
{| class="wikitable" border="1"