HID Shared Memory: Difference between revisions
No edit summary |
m Add HID 3D slider field |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 23: | Line 23: | ||
| 0x4 | | 0x4 | ||
| Index in the following array which was last updated by HID module. | | Index in the following array which was last updated by HID module. | ||
|- | |||
| 0x18 | |||
| 0x4 | |||
| 3D slider state as f32 (0.0f = completely off, 1.0f = max) | |||
|- | |- | ||
| 0x1C | | 0x1C | ||
Line 82: | Line 86: | ||
|- | |- | ||
| 12 | | 12 | ||
| | | Inverted value of [[GPIO_Services|GPIO]] bit0. | ||
|- | |- | ||
| 13 | | 13 | ||
| | | Inverted value of [[GPIO_Services|GPIO]] bit14. | ||
|- | |- | ||
| 28 | | 28 | ||
Line 325: | Line 329: | ||
| 0x0 | | 0x0 | ||
| 0x2 | | 0x2 | ||
| | | Keys held | ||
|- | |- | ||
| 0x2 | | 0x2 | ||
| 0x2 | | 0x2 | ||
| | | Keys just pressed | ||
|- | |- | ||
| 0x4 | | 0x4 | ||
| 0x2 | | 0x2 | ||
| | | Keys just released | ||
|- | |- | ||
| 0x6 | | 0x6 | ||
| 0x1 | | 0x1 | ||
| | | Left Stick X (range roughly -32 to +31) | ||
|- | |- | ||
| 0x7 | | 0x7 | ||
| 0x1 | | 0x1 | ||
| | | Left Stick Y (range roughly -32 to +31) | ||
|- | |- | ||
| 0x8 | | 0x8 | ||
| 0x1 | | 0x1 | ||
| | | Right Stick X (range roughly -16 to +15) | ||
|- | |- | ||
| 0x9 | | 0x9 | ||
| 0x1 | | 0x1 | ||
| | | Right Stick Y (range roughly -16 to +15) | ||
|- | |- | ||
| 0xA | | 0xA | ||
Line 355: | Line 359: | ||
| Padding, not written by HID module. | | Padding, not written by HID module. | ||
|} | |} | ||
Note: there is code in hid sysmodule where holding +, -, DPAD Left, and A will recallibrate the sticks to zero. |