summaryrefslogtreecommitdiffstats
path: root/services/inputflinger/EventHub.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Inputflinger: hook up key event replacement processingDmitry Torokhov2015-09-291-8/+22
| | | | | | | | | | | | | | | Add handling of "replacement" key events in InputReader and EventHub by consulting device's character key map (if exists) for presence of replacement key code for given get code and meta state combination, before passing it to InputDispatcher. This enables defining special keys, such as ESC, on keyboards lacking enough physical keys, via combination of normal keys and modifiers, for example AltR + 1 => ESC. Bug: 24504154 Change-Id: I7e36104808bedcf724436c1fbb63d37c35cca8af
* Fuse stylus and touch screen data.Michael Wright2015-04-171-0/+17
| | | | | | | TODO: Ensure we dispatch new pressure and button data when stylus is stationary. Change-Id: I10a665a9b81ff4b9acd01bf72f0fc2e0c2abc203
* Pass through availability of audio mic for input devices.Tim Kilbourn2015-04-091-0/+15
| | | | | Bug: 15374820 Change-Id: Id2ca6da10165e3a887ebfbb18f663a3bf316ac79
* Use EPOLLWAKEUP properly.Tim Kilbourn2015-03-261-1/+4
| | | | | | | We were trying to use it only when it wasn't supported. Bug: 19937342 Change-Id: Id35aef9ad84f101f7ada2eb87fb91e5c5e2b3357
* We have POSIX clocks, and we don't need to ask for the openssl headers.Elliott Hughes2015-01-091-4/+0
| | | | | | | This code doesn't need to run on the Mac, and the BoringSSL transition will be easier without references to external/openssl. Change-Id: I14ea11fa2911af0f4e95e69636e6a2c26126cbe0
* Remove comparisons that can't be trueBernhard Rosenkränzer2014-11-171-2/+2
| | | | | | | | keyBitmask and ledBitmask are arrays, "!their address" always evaluates to false. clang complains about this. Change-Id: I6aed45a203b0eeaad2093dbdebea03a2c2fc1a3d Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* Use openssl's SHA1 instead of bionic's.Dan Albert2014-06-201-7/+7
| | | | | | Bionic is removing its SHA1. Change-Id: I7d15986ebac9e0f0eb7ff93457780bd90a4f1d4f
* inputflinger: 64-bit compile issuesMark Salyzyn2014-06-101-24/+25
| | | | Change-Id: I9861f96a8234d5f57b664baead7a465771b63bd5
* Misc. buttons aren't gamepad keys.Michael Wright2014-04-021-4/+0
| | | | | | | | | BUTTON_[1-9] are intended to be misc. buttons so the kernel will assign them to non-gamepad devices. As such, we shouldn't treat them as belonging to gamepads at all. Bug: 13432364 Change-Id: Ida52ec45dadb53df1a9d36ac3ab212a2d2b56359
* Cherry pick parts of f5df700e6ce.Narayan Kamath2014-03-271-1/+1
| | | | | | | This is logically a part of the merge conflict resolution for 22d07464 to master. These files moved across git repositories. Change-Id: Id95bfa0bf503295f2c02a201f4bec5243d169ec4
* Controllers must have buttons and a movement mechanism.Michael Wright2014-03-121-1/+2
| | | | | | | | | | | Some devices have joystick axes or DPad keys, but no gamepad buttons (or vice versa). We shouldn't count these as gamepads since games can't really be expected to work with this setup in the general case. Instead, require that a device has a movement mechanism (joystick axes or DPad buttons), as well as at least one gamepad button before considering it a controller. Bug: 13432364 Change-Id: I64372e69d29c775094e2b1faa89714da8c29e2be
* Move inputservice over to frameworks/nativeMichael Wright2014-02-111-0/+1669
| | | | | | | | | | Add all of the underlying input system pieces, minux PointerController and SpriteController, to inputflinger. This is in preparation for moving input to its own process and the addition of the input HAL. Try 2. Change-Id: I5f571fe86eb570885ae994e1f0552fb558930346
* Revert "Move inputservice over to frameworks/native"Michael Wright2014-02-101-1669/+0
| | | | This reverts commit 2dceb67f1f32bd2ec589c4ac3d83da0b8dbe4a5c.
* Move inputservice over to frameworks/nativeMichael Wright2014-02-101-0/+1669
Add all of the underlying input system pieces, minux PointerController and SpriteController, to inputflinger. This is in preparation for moving input to its own process and the addition of the input HAL. Change-Id: I1419a740b38756bd0d54fef5f5ca337e6815b1b0