Changes

2,985 bytes added ,  01:06, 26 November 2020
hidconfig
Line 6,768: Line 6,768:  
! Offset || Size || Description
 
! Offset || Size || Description
 
|-
 
|-
| 0x0 || 0x44 (4*17) || [[#ButtonConfig]], for the following buttons: DLeft, DUp, DRight, DDown, A, B, X, Y, L-Stick, R-Stick, L, R, ZL, ZR, -, +, Capture.
+
| 0x0 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonLeft]]
 
|-
 
|-
| 0x44 || 0x8 || [[#JoystickConfig]], for the left-stick.
+
| 0x4 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonUp]]
 
|-
 
|-
| 0x4C || 0x8 || [[#JoystickConfig]], for the right-stick.
+
| 0x8 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonRight]]
 +
|-
 +
| 0xC || 0x4 || [[#DigitalButtonAssignment|HardwareButtonDown]]
 +
|-
 +
| 0x10 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonA]]
 +
|-
 +
| 0x14 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonB]]
 +
|-
 +
| 0x18 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonX]]
 +
|-
 +
| 0x1C || 0x4 || [[#DigitalButtonAssignment|HardwareButtonY]]
 +
|-
 +
| 0x20 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStickL]]
 +
|-
 +
| 0x24 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStickR]]
 +
|-
 +
| 0x28 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonL]]
 +
|-
 +
| 0x2C || 0x4 || [[#DigitalButtonAssignment|HardwareButtonR]]
 +
|-
 +
| 0x30 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonZL]]
 +
|-
 +
| 0x34 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonZR]]
 +
|-
 +
| 0x38 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonSelect]]
 +
|-
 +
| 0x3C || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStart]]
 +
|-
 +
| 0x40 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonCapture]]
 +
|-
 +
| 0x44 || 0x8 || [[#AnalogStickAssignment|HardwareStickL]]
 +
|-
 +
| 0x4C || 0x8 || [[#AnalogStickAssignment|HardwareStickR]]
 
|}
 
|}
   −
== ButtonConfig ==
+
== DigitalButtonAssignment ==
u32 button mapping config. Must be value 0 - 22, which selects what button to map to.
+
This is "nn::hidconfig::DigitalButtonAssignment".
    
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 6,782: Line 6,814:  
!  Description
 
!  Description
 
|-
 
|-
| 0 || A
+
| 0 || DigitalButtonAssignment_A
 
|-
 
|-
| 1 || B
+
| 1 || DigitalButtonAssignment_B
 
|-
 
|-
| 2 || X
+
| 2 || DigitalButtonAssignment_X
 
|-
 
|-
| 3 || Y
+
| 3 || DigitalButtonAssignment_Y
 
|-
 
|-
| 4 || L-Stick
+
| 4 || DigitalButtonAssignment_StickL
 
|-
 
|-
| 5 || R-Stick
+
| 5 || DigitalButtonAssignment_StickR
 
|-
 
|-
| 6 || L
+
| 6 || DigitalButtonAssignment_L
 
|-
 
|-
| 7 || R
+
| 7 || DigitalButtonAssignment_R
 
|-
 
|-
| 8 || ZL
+
| 8 || DigitalButtonAssignment_ZL
 
|-
 
|-
| 9 || ZR
+
| 9 || DigitalButtonAssignment_ZR
 
|-
 
|-
| 10 || -
+
| 10 || DigitalButtonAssignment_Select
 
|-
 
|-
| 11 || +
+
| 11 || DigitalButtonAssignment_Start
 
|-
 
|-
| 12 || DLeft
+
| 12 || DigitalButtonAssignment_Left
 
|-
 
|-
| 13 || DUp
+
| 13 || DigitalButtonAssignment_Up
 
|-
 
|-
| 14 || DRight
+
| 14 || DigitalButtonAssignment_Right
 
|-
 
|-
| 15 || DDown
+
| 15 || DigitalButtonAssignment_Down
 
|-
 
|-
| 16 || SL_Left
+
| 16 || DigitalButtonAssignment_LeftSL
 
|-
 
|-
| 17 || SR_Left
+
| 17 || DigitalButtonAssignment_LeftSR
 
|-
 
|-
| 18 || SL_Right
+
| 18 || DigitalButtonAssignment_RightSL
 
|-
 
|-
| 19 || SR_Right
+
| 19 || DigitalButtonAssignment_RightSR
 
|-
 
|-
| 20 || HOME
+
| 20 || DigitalButtonAssignment_HomeButton
 
|-
 
|-
| 21 || Capture
+
| 21 || DigitalButtonAssignment_CaptureButton
 
|-
 
|-
| 22 || Disabled
+
| 22 || DigitalButtonAssignment_Invalid
 
|}
 
|}
   −
== JoystickConfig ==
+
== AnalogStickAssignment ==
 +
This is "nn::hidconfig::AnalogStickAssignment".
 +
 
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
 
! Offset || Size || Description
 
! Offset || Size || Description
 
|-
 
|-
| 0x0 || 0x4 || Orientation. 0 = default, 1 = enabled for Left, 2 = enabled for Right.
+
| 0x0 || 0x4 || [[#AnalogStickRotation]]
 
|-
 
|-
| 0x4 || 0x1 || StickChange
+
| 0x4 || 0x1 || IsPairedStickAssigned
 
|-
 
|-
 
| 0x5 || 0x3 || Padding
 
| 0x5 || 0x3 || Padding
 +
|}
 +
 +
== AnalogStickRotation ==
 +
This is "nn::hidconfig::AnalogStickRotation".
 +
 +
{| class="wikitable" border="1"
 +
!  Value
 +
!  Description
 +
|-
 +
| 0 || AnalogStickRotation_None
 +
|-
 +
| 1 || AnalogStickRotation_Clockwise90
 +
|-
 +
| 2 || AnalogStickRotation_Anticlockwise90
 
|}
 
|}
   Line 6,853: Line 6,901:  
! Offset || Size || Description
 
! Offset || Size || Description
 
|-
 
|-
| 0x0 || 0x2C (4*11) || [[#ButtonConfig]], for the following buttons: DLeft, DUp, DRight, DDown, L-Stick, L, ZL, -, SL_Left, SR_Left, Capture.
+
| 0x0 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonLeft]]
 +
|-
 +
| 0x4 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonUp]]
 +
|-
 +
| 0x8 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonRight]]
 +
|-
 +
| 0xC || 0x4 || [[#DigitalButtonAssignment|HardwareButtonDown]]
 +
|-
 +
| 0x10 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStickL]]
 +
|-
 +
| 0x14 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonL]]
 +
|-
 +
| 0x18 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonZL]]
 +
|-
 +
| 0x1C || 0x4 || [[#DigitalButtonAssignment|HardwareButtonSelect]]
 +
|-
 +
| 0x20 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonLeftSL]]
 +
|-
 +
| 0x24 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonLeftSR]]
 
|-
 
|-
| 0x2C || 0x8 || [[#JoystickConfig]]
+
| 0x28 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonCapture]]
 +
|-
 +
| 0x2C || 0x8 || [[#AnalogStickAssignment|HardwareStickL]]
 
|}
 
|}
   Line 6,865: Line 6,933:  
! Offset || Size || Description
 
! Offset || Size || Description
 
|-
 
|-
| 0x0 || 0x28 (4*10) || [[#ButtonConfig]], for the following buttons: A, B, X, Y, R-Stick, R, ZR, +, SL_Right, SR_Right.
+
| 0x0 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonA]]
 +
|-
 +
| 0x4 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonB]]
 +
|-
 +
| 0x8 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonX]]
 +
|-
 +
| 0xC || 0x4 || [[#DigitalButtonAssignment|HardwareButtonY]]
 +
|-
 +
| 0x10 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStickR]]
 +
|-
 +
| 0x14 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonR]]
 +
|-
 +
| 0x18 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonZR]]
 +
|-
 +
| 0x1C || 0x4 || [[#DigitalButtonAssignment|HardwareButtonStart]]
 +
|-
 +
| 0x20 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonRightSL]]
 +
|-
 +
| 0x24 || 0x4 || [[#DigitalButtonAssignment|HardwareButtonRightSR]]
 
|-
 
|-
| 0x28 || 0x8 || [[#JoystickConfig]]
+
| 0x28 || 0x8 || [[#AnalogStickAssignment|HardwareStickR]]
 
|}
 
|}