summaryrefslogtreecommitdiffstats
path: root/native
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 19:12:41 -0800
commit8529745b27877d98a0c76692295a3fcac238b1e6 (patch)
tree0327e434025461d9ed376ef6982855fd7f1e5a35 /native
parent54bb98698a3550250b332b2f4d756b1a5c7473f5 (diff)
downloadframeworks_base-8529745b27877d98a0c76692295a3fcac238b1e6.zip
frameworks_base-8529745b27877d98a0c76692295a3fcac238b1e6.tar.gz
frameworks_base-8529745b27877d98a0c76692295a3fcac238b1e6.tar.bz2
Joystick tweaks. (DO NOT MERGE)
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: I0fddd90309af4dc14d35f34fe99ed6e521c0b7c7
Diffstat (limited to 'native')
-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,