Changes

Jump to navigation Jump to search
406 bytes added ,  08:10, 20 August 2014
Line 26: Line 26:  
| 0x1C
 
| 0x1C
 
| 0x4
 
| 0x4
| [[PAD]] state. Bit set = button pressed, bit clear = button not pressed. Bit28-31 do not apply to this entry, but they apply to further PAD state entries. Bit28-31 are set when the corresponding circle pad coordinate is >=41 (or <=-41).
+
| Current [[PAD]] state.
 
|-
 
|-
 
| 0x20
 
| 0x20
Line 38: Line 38:     
HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0.
 
HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0.
 +
 +
==PAD State==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Bit
 +
!  Description
 +
|-
 +
| 0
 +
| A
 +
|-
 +
| 1
 +
| B
 +
|-
 +
| 2
 +
| Select
 +
|-
 +
| 3
 +
| Start
 +
|-
 +
| 4
 +
| Right
 +
|-
 +
| 5
 +
| Left
 +
|-
 +
| 6
 +
| Up
 +
|-
 +
| 7
 +
| Down
 +
|-
 +
| 8
 +
| R
 +
|-
 +
| 9
 +
| L
 +
|-
 +
| 10
 +
| X
 +
|-
 +
| 11
 +
| Y
 +
|-
 +
| 28
 +
| Circle pad left (X <= -41)
 +
|-
 +
| 29
 +
| Circle pad right (X >= 41)
 +
|-
 +
| 30
 +
| Circle pad up (Y >= 41)
 +
|-
 +
| 31
 +
| Circle pad down (Y <= -41)
 +
|}
 +
 +
Bit set = button pressed, bit clear = button not pressed. Bit28-31 only apply to the PAD fields in the array entries. Bit28-31 are set by HID module depending on data from a GPIO command, these are not included with the [[PAD]] register itself.
    
==Entry format==
 
==Entry format==

Navigation menu