Changes

Jump to navigation Jump to search
83 bytes added ,  20:34, 16 August 2013
no edit summary
Line 1: Line 1:  
This page describes the format of the [[HID_Services|HID]] shared memory.
 
This page describes the format of the [[HID_Services|HID]] shared memory.
 +
 +
The data for each of the below entries(PAD state, circle-pad, touch-screen, etc) is originally read by the HID module at different times per frame.
    
=Offset 0x0=
 
=Offset 0x0=
Line 11: Line 13:  
|-
 
|-
 
| 0x28
 
| 0x28
| Same as 0x1C?
+
| Second PAD state entry.
 
|-
 
|-
 
| 0x34
 
| 0x34
Line 17: Line 19:  
|-
 
|-
 
| 0x38
 
| 0x38
| Same as 0x1C?
+
| Third PAD state entry.
 
|-
 
|-
 
| 0x44
 
| 0x44
| Second circle-pad info word.
+
| Second circle-pad info entry.
 
|-
 
|-
 
| 0x48
 
| 0x48
| Same as 0x1C?
+
| Fourth PAD state entry.
 
|-
 
|-
 
| 0x54
 
| 0x54
| Third circle-pad info word.
+
| Third circle-pad info entry.
 
|-
 
|-
 
| 0x58
 
| 0x58
| Same as 0x1C?
+
| Fifth PAD state entry.
 
|-
 
|-
 
| 0x64
 
| 0x64
| Fourth circle-pad info word.
+
| Fourth circle-pad info entry.
 
|-
 
|-
 
| 0x68
 
| 0x68
| Same as 0x1C?
+
| Sixth PAD state entry.
 
|-
 
|-
 
| 0x74
 
| 0x74
| Fifth circle-pad info word.
+
| Fifth circle-pad info entry.
 
|-
 
|-
 
| 0x78
 
| 0x78
| Same as 0x1C?
+
| Seventh PAD state entry.
 
|-
 
|-
 
| 0x84
 
| 0x84
| Sixth circle-pad info word.
+
| Sixth circle-pad info entry.
 
|-
 
|-
 
| 0x88
 
| 0x88
| Same as 0x1C?
+
| Eighth PAD state entry.
 
|-
 
|-
 
| 0x94
 
| 0x94
| Seventh circle-pad info word.
+
| Seventh circle-pad info entry.
 
|-
 
|-
 
| 0x98
 
| 0x98
| Same as 0x1C?
+
| Ninth PAD state entry.
 
|}
 
|}
  −
The info for each circle-pad word is originally read by HID module at different times per frame.
      
=Offset 0xC0=
 
=Offset 0xC0=
This 0x48-byte region stores entries for touch-screen position info. Each entry is 0x8-bytes, there's a total of 9 entries. Normally the last 8 entries contain the same data. When the touch-screen is not being touched, this region is all-zero.
+
This 0x48-byte region stores entries for touch-screen position info. Each entry is 0x8-bytes, there's a total of 9 entries. When the touch-screen is not being touched, this region is all-zero.
    
The last 8 entries contain the pixel coordinates, while the first entry seems to contain the raw coordinate data prior to being converted to pixel coordinates.
 
The last 8 entries contain the pixel coordinates, while the first entry seems to contain the raw coordinate data prior to being converted to pixel coordinates.

Navigation menu