summaryrefslogtreecommitdiffstats
path: root/services/input/EventHub.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 19:12:41 -0800
commit8529745b27877d98a0c76692295a3fcac238b1e6 (patch)
tree0327e434025461d9ed376ef6982855fd7f1e5a35 /services/input/EventHub.h
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 'services/input/EventHub.h')
-rw-r--r--services/input/EventHub.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/input/EventHub.h b/services/input/EventHub.h
index 445c04b..ab42a1f 100644
--- a/services/input/EventHub.h
+++ b/services/input/EventHub.h
@@ -176,7 +176,7 @@ public:
int32_t* outKeycode, uint32_t* outFlags) const = 0;
virtual status_t mapAxis(int32_t deviceId, int scancode,
- int32_t* outAxis) const = 0;
+ AxisInfo* outAxisInfo) const = 0;
// exclude a particular device from opening
// this can be used to ignore input devices for sensors
@@ -235,7 +235,7 @@ public:
int32_t* outKeycode, uint32_t* outFlags) const;
virtual status_t mapAxis(int32_t deviceId, int scancode,
- int32_t* outAxis) const;
+ AxisInfo* outAxisInfo) const;
virtual void addExcludedDevice(const char* deviceName);