|
@@ -180,56 +180,56 @@ When adding additional gamepad bindings on Android you can use the following loo
|
|
|
|
|
|
| Key event to button index | Index | Version |
|
|
| Key event to button index | Index | Version |
|
|
|-----------------------------|-------|---------|
|
|
|-----------------------------|-------|---------|
|
|
-| AKEYCODE_BUTTON_A | 0 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_B | 1 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_C | 2 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_X | 3 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_L1 | 4 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_R1 | 5 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_Y | 6 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_Z | 7 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_L2 | 8 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_R2 | 9 | 1.2.183 |
|
|
|
|
-| AKEYCODE_DPAD_CENTER | 10 | 1.2.183 |
|
|
|
|
-| AKEYCODE_DPAD_DOWN | 11 | 1.2.183 |
|
|
|
|
-| AKEYCODE_DPAD_LEFT | 12 | 1.2.183 |
|
|
|
|
-| AKEYCODE_DPAD_RIGHT | 13 | 1.2.183 |
|
|
|
|
-| AKEYCODE_DPAD_UP | 14 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_START | 15 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_SELECT | 16 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_THUMBL | 17 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_THUMBR | 18 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_MODE | 19 | 1.2.183 |
|
|
|
|
-| AKEYCODE_BUTTON_1 | 20 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_2 | 21 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_3 | 22 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_4 | 23 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_5 | 24 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_6 | 25 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_7 | 26 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_8 | 27 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_9 | 28 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_10 | 29 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_11 | 30 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_12 | 31 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_13 | 32 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_14 | 33 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_15 | 34 | 1.2.186 |
|
|
|
|
-| AKEYCODE_BUTTON_16 | 35 | 1.2.186 |
|
|
|
|
-
|
|
|
|
-([Android KeyEvent definitions](https://developer.android.com/ndk/reference/group/input#group___input_1gafccd240f973cf154952fb917c9209719))
|
|
|
|
|
|
+| `AKEYCODE_BUTTON_A` | 0 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_B` | 1 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_C` | 2 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_X` | 3 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_L1` | 4 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_R1` | 5 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_Y` | 6 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_Z` | 7 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_L2` | 8 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_R2` | 9 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_DPAD_CENTER` | 10 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_DPAD_DOWN` | 11 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_DPAD_LEFT` | 12 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_DPAD_RIGHT` | 13 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_DPAD_UP` | 14 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_START` | 15 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_SELECT` | 16 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_THUMBL` | 17 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_THUMBR` | 18 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_MODE` | 19 | 1.2.183 |
|
|
|
|
+| `AKEYCODE_BUTTON_1` | 20 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_2` | 21 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_3` | 22 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_4` | 23 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_5` | 24 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_6` | 25 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_7` | 26 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_8` | 27 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_9` | 28 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_10` | 29 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_11` | 30 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_12` | 31 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_13` | 32 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_14` | 33 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_15` | 34 | 1.2.186 |
|
|
|
|
+| `AKEYCODE_BUTTON_16` | 35 | 1.2.186 |
|
|
|
|
+
|
|
|
|
+([Android `KeyEvent` definitions](https://developer.android.com/ndk/reference/group/input#group___input_1gafccd240f973cf154952fb917c9209719))
|
|
|
|
|
|
| Motion event to axis index | Index |
|
|
| Motion event to axis index | Index |
|
|
|-----------------------------|-------|
|
|
|-----------------------------|-------|
|
|
-| AMOTION_EVENT_AXIS_X | 0 |
|
|
|
|
-| AMOTION_EVENT_AXIS_Y | 1 |
|
|
|
|
-| AMOTION_EVENT_AXIS_Z | 2 |
|
|
|
|
-| AMOTION_EVENT_AXIS_RZ | 3 |
|
|
|
|
-| AMOTION_EVENT_AXIS_LTRIGGER | 4 |
|
|
|
|
-| AMOTION_EVENT_AXIS_RTRIGGER | 5 |
|
|
|
|
-| AMOTION_EVENT_AXIS_HAT_X | 6 |
|
|
|
|
-| AMOTION_EVENT_AXIS_HAT_Y | 7 |
|
|
|
|
-
|
|
|
|
-([Android MotionEvent definitions](https://developer.android.com/ndk/reference/group/input#group___input_1ga157d5577a5b2f5986037d0d09c7dc77d))
|
|
|
|
|
|
+| `AMOTION_EVENT_AXIS_X` | 0 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_Y` | 1 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_Z` | 2 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_RZ` | 3 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_LTRIGGER` | 4 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_RTRIGGER` | 5 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_HAT_X` | 6 |
|
|
|
|
+| `AMOTION_EVENT_AXIS_HAT_Y` | 7 |
|
|
|
|
+
|
|
|
|
+([Android `MotionEvent` definitions](https://developer.android.com/ndk/reference/group/input#group___input_1ga157d5577a5b2f5986037d0d09c7dc77d))
|
|
|
|
|
|
Use this lookup table in combination with a gamepad test app from the Google Play Store to figure out which key event each button on your gamepad is mapped to.
|
|
Use this lookup table in combination with a gamepad test app from the Google Play Store to figure out which key event each button on your gamepad is mapped to.
|