summaryrefslogtreecommitdiffstats
path: root/native/include/android/input.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-03-04 13:07:49 -0800
committerJeff Brown <jeffbrown@google.com>2011-03-04 18:53:32 -0800
commit3a22fa057091cd6614f58ebc57a7ce4fe29462bb (patch)
tree974dcf7edb5668a7cffd7aa629c4ccc95ed5a99f /native/include/android/input.h
parent06b0e5899525330119f27f0f7d9898db6f73e0e2 (diff)
downloadframeworks_base-3a22fa057091cd6614f58ebc57a7ce4fe29462bb.zip
frameworks_base-3a22fa057091cd6614f58ebc57a7ce4fe29462bb.tar.gz
frameworks_base-3a22fa057091cd6614f58ebc57a7ce4fe29462bb.tar.bz2
Joystick tweaks.
Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions even when noise filtering is applied. (Bug: 3514510) Add support for a few more standard axes. Add additional mapping modes for axes. Some axes are inverted from standard interpretation or are actually intended to be split into two distict axes such as left/right trigger controls or accelerator/brake. Add key layout file for a G25 racing wheel and XBox 360 controller to tweak behavior. They work fine without them but the axis mappings are not ideal. Change-Id: Id4c86a0a272331c680039a9bde6815bb7eba44ab
Diffstat (limited to 'native/include/android/input.h')
-rw-r--r--native/include/android/input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/native/include/android/input.h b/native/include/android/input.h
index f19e8be..86be54a 100644
--- a/native/include/android/input.h
+++ b/native/include/android/input.h
@@ -359,6 +359,11 @@ enum {
AMOTION_EVENT_AXIS_HAT_Y = 16,
AMOTION_EVENT_AXIS_LTRIGGER = 17,
AMOTION_EVENT_AXIS_RTRIGGER = 18,
+ AMOTION_EVENT_AXIS_THROTTLE = 19,
+ AMOTION_EVENT_AXIS_RUDDER = 20,
+ AMOTION_EVENT_AXIS_WHEEL = 21,
+ AMOTION_EVENT_AXIS_GAS = 22,
+ AMOTION_EVENT_AXIS_BRAKE = 23,
AMOTION_EVENT_AXIS_GENERIC_1 = 32,
AMOTION_EVENT_AXIS_GENERIC_2 = 33,
AMOTION_EVENT_AXIS_GENERIC_3 = 34,