HID services: Difference between revisions

No edit summary
Line 6,801: Line 6,801:
|-
|-
| 31
| 31
| [12.0.0+] LagonCLeft (Left C button in N64 controller)
| [12.0.0+] LeftC (Left C button in N64 controller)
|-
|-
| 32
| 32
| [12.0.0+] LagonCUp (Up C button in N64 controller)
| [12.0.0+] UpC (Up C button in N64 controller)
|-
|-
| 33
| 33
| [12.0.0+] LagonCRight (Right C button in N64 controller)
| [12.0.0+] RightC (Right C button in N64 controller)
|-
|-
| 34
| 34
| [12.0.0+] LagonCDown (Down C button in N64 controller)
| [12.0.0+] DownC (Down C button in N64 controller)
|}
|}


Line 7,276: Line 7,276:
| 3 || USB
| 3 || USB
|-
|-
| 4 || Unknown
| 4 || Embedded
|}
|}


Line 8,666: Line 8,666:
This is an UTF-8 NUL-terminated name string.
This is an UTF-8 NUL-terminated name string.


= AssignmentStyle =
= InterfaceType =
This is "nn::hidtypes::AssignmentStyle". This is a 32-bit flag.
This is "nn::hidtypes::InterfaceType".
 
 
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
!  Value
! Bit
!  Description
! Description
|-
|-
| 1 || Bluetooth
| 0
|-
| IsExternalAssigned
| 2 || Rail
|-
|-
| 1
| 3 || USB
| IsExternalLeftAssigned
|-
|-
| 4 || Embedded
| 2
|}
| IsExternalRightAssigned
 
|-
= DigitalButton =
| 3
This is "nn::hidtypes::DigitalButton". This is a 64-bit flag.
| IsHandheldAssigned
 
|-
{| class="wikitable" border="1"
| 4
|-
| IsHandheldLeftAssigned
! Bit
|-
! Description
| 5
|-
| IsHandheldRightAssigned
| 0
|}
| A
 
|-
= FeatureType =
| 1
This is "nn::hidtypes::FeatureType". This is a 64-bit flag.
| B
 
|-
{| class="wikitable" border="1"
| 2
|-
| X
! Bit
|-
! Description
| 3
|-
| Y
| 0
|-
| HasLeftAnalogStick
| 4
|-
| StickL
| 1
|-
| HasRightAnalogStick
| 5
|-
| StickR
| 2
|-
| 6
| L
|-
| 7
| R
|-
| 8
| ZL
|-
| 9
| ZR
|-
| 10
| Start
|-
| 11
| Select
|-
| 12
| Left
|-
| 13
| Up
|-
| 14
| Right
|-
| 15
| Down
|-
| 16
| SL
|-
| 17
| SR
|-
| 18
| Home
|-
| 19
| Shot
|-
| 20
| StickLLeft
|-
| 21
| StickLUp
|-
| 22
| StickLRight
|-
| 23
| StickLDown
|-
| 24
| StickRLeft
|-
| 25
| StickRUp
|-
| 26
| StickRRight
|-
| 27
| StickRDown
|-
| 28
| Palma
|-
| 29
| HandheldLeftB
|-
| 30
| Plus
|-
| 31
| Minus
|-
| 32
| Z
|-
| 33
| LeftSL
|-
| 34
| LeftSR
|-
| 35
| RightSL
|-
| 36
| RightSR
|-
| 37
| LeftC
|-
| 38
| UpC
|-
| 39
| RightC
|-
| 40
| DownC
|}
 
= AssignmentStyle =
This is "nn::hidtypes::AssignmentStyle". This is a 32-bit flag.
 
{| class="wikitable" border="1"
|-
! Bit
! Description
|-
| 0
| IsExternalAssigned
|-
| 1
| IsExternalLeftAssigned
|-
| 2
| IsExternalRightAssigned
|-
| 3
| IsHandheldAssigned
|-
| 4
| IsHandheldLeftAssigned
|-
| 5
| IsHandheldRightAssigned
|}
 
= FeatureType =
This is "nn::hidtypes::FeatureType". This is a 64-bit flag.
 
{| class="wikitable" border="1"
|-
! Bit
! Description
|-
| 0
| HasLeftAnalogStick
|-
| 1
| HasRightAnalogStick
|-
| 2
| HasLeftSixAxisSensor
| HasLeftSixAxisSensor
|-
|-
Line 8,819: Line 8,967:
| 0x0 || 0x4 || BodyColor
| 0x0 || 0x4 || BodyColor
|-
|-
| 0x4 || 0x4 || ButtonsColor
| 0x4 || 0x4 || ButtonColor
|-
|-
| 0x8 || 0x4 || LeftGripColor
| 0x8 || 0x4 || LeftGripColor
Line 8,839: Line 8,987:
| 0x8 || 0x8 || [[#FeatureType|FeatureType]]
| 0x8 || 0x8 || [[#FeatureType|FeatureType]]
|-
|-
| 0x10 || 0x4 ||  
| 0x10 || 0x8 || [[#DigitalButton|DigitalButton]]
|-
| 0x14 || 0x4 ||  
|-
|-
| 0x18 || 0x4 || [[#AssignmentStyle|AssignmentStyle]]
| 0x18 || 0x4 || [[#AssignmentStyle|AssignmentStyle]]
Line 8,847: Line 8,993:
| 0x1C || 0x10 || [[#Color|DeviceColor]]
| 0x1C || 0x10 || [[#Color|DeviceColor]]
|-
|-
| 0x2C || 0x4 ||  
| 0x2C || 0x4 || Reserved
|}
 
= UnmaskFeatureDescriptorType =
This is "nn::hid::server::UnmaskFeatureDescriptorType".
 
{| class="wikitable" border="1"
|-
! Offset || Size || Description
|-
| 0x0 || 0x1 || [[#DeviceTypeInternal|DeviceType]]
|-
| 0x1 || 0x1 || [[#InterfaceType|InterfaceType]]
|-
| 0x2 || 0x6 || Reserved
|-
| 0x8 || 0x8 || [[#FeatureType|FeatureType]]
|}
|}