summaryrefslogtreecommitdiffstats
path: root/libs/input
Commit message (Collapse)AuthorAgeFilesLines
* Merge "add number constraint for samples per MotionEvent" into mnc-dr-devAdam Lesinski2015-10-121-1/+2
|\
| * add number constraint for samples per MotionEventFlanker2015-10-121-1/+2
| | | | | | | | | | | | | | Bug:23905002 Change-Id: Ifd24802977c3dcdd1dbc5120a78aac41beae4603 Signed-off-by: Adam Lesinski <adamlesinski@google.com>
* | Merge "Allow defining replacement key events in keymap" into mnc-dr-devPuneet Kumar2015-10-082-13/+100
|\ \
| * | Allow defining replacement key events in keymapDmitry Torokhov2015-09-292-13/+100
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently keyboard maps allow to assign character sequences to key events and allow specifying a so-called "fallback" key events that are re-injected into input stream if target application indicates that it was not able to handle the original key event. Unfortunately there is no way to perform substitution before handing the event to applicationis. This change adds a new keymap keyword "replace" that allows users query "replacement" actions for key (if any), with the intent that such replacement happens early in the event handling process. Bug: 24504154 Change-Id: I3e6a2476c856524171df00ad22ff56f2018c1278
* | InputResampling: Don't extrapolate for very low frame rates.Andrew de los Reyes2015-10-011-2/+11
|/ | | | | | | | | | | | In very low framerate situations, extrapolation is generally going to either cause no benefit or make a mistake. We can safely turn it off with no user-visible negative impact. BUG=https://buganizer.corp.google.com/u/0/issues/24550942 TEST=Scrolled very slowly and saw mispredictions on Angler. With change, saw the log message that the mispredictions were suppressed. Change-Id: Ic9747d3ff098d7918047ada2ed1c2d21282c65b0
* Fix input tests to work with new MotionEvent memberMichael Wright2015-05-143-10/+12
| | | | Change-Id: I0dde0f91f693903f26edc116b5dbcbf33bac2b93
* Revert "Revert "Add new MotionEvent actions for button press and release.""Michael Wright2015-05-142-3/+11
| | | | This reverts commit 70b41ef580644fd0fe6fa9b8ac7e4a745cfb6db3.
* Revert "Add new MotionEvent actions for button press and release."Michael Wright2015-05-142-11/+3
| | | | This reverts commit 48a8a0e4322969e1551536d6183af3a1faa2240b.
* Add new MotionEvent actions for button press and release.Michael Wright2015-05-142-3/+11
| | | | | | | | | | | | | | Introduce ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE as actions to signal a button press or release. If these actions happen simulanteously with a DOWN or UP event then they're explicitly ordered to happen after the DOWN or preceding the UP in order to send them to the most recently targeted view. Also, introduce new stylus button constants that differ from the constants we use for mouse buttons. Bug: 20704355 Change-Id: Ib960a5004db5429ad2fc8db020704773e2978327
* Pass through availability of audio mic for input devices.Tim Kilbourn2015-04-091-5/+8
| | | | | Bug: 15374820 Change-Id: Id2ca6da10165e3a887ebfbb18f663a3bf316ac79
* am 4355c0c9: am e1e3d278: Merge "Clean cruft out of makefiles."Dan Albert2014-09-121-6/+2
|\ | | | | | | | | * commit '4355c0c98644c37f0511257403bbfb71b342e2df': Clean cruft out of makefiles.
| * am e1e3d278: Merge "Clean cruft out of makefiles."Dan Albert2014-09-121-6/+2
| |\ | | | | | | | | | | | | * commit 'e1e3d278549eb6389eb0b5fa3f13a4ac079a55a2': Clean cruft out of makefiles.
| | * Clean cruft out of makefiles.Dan Albert2014-09-111-6/+2
| | | | | | | | | | | | | | | | | | | | | Cleans up manual uses of stlport and bionic (and removes uses of private bionic headers). Change-Id: I157309d702e59152adfa3450939082248ae4c043
| * | Shelve InputFlinger for another release. DO NOT MERGEMichael Wright2014-08-182-60/+0
|/ / | | | | | | Change-Id: I0f034a2b8b1d9192f61f5001799bd3aa4b3964c7
* | Fixup more potential issues / warnings in string formatsMichael Wright2014-06-101-2/+2
| | | | | | | | Change-Id: I323e44f950b2e758dc9ff4510b2e13ca870eb849
* | Fix warning in logging string interpolationMichael Wright2014-06-091-1/+2
| | | | | | | | Change-Id: I86623083f68664d31ea277958837a4c2985037b4
* | am 26063a91: am f1dd859b: Merge "x86_64: Align uint64_t/int64_t structure ↵Narayan Kamath2014-06-032-0/+78
|\ \ | | | | | | | | | | | | | | | | | | member to 8 bytes" * commit '26063a9155ddd18d858cea7fac7c1ddf71e1bcb7': x86_64: Align uint64_t/int64_t structure member to 8 bytes
| * \ am f1dd859b: Merge "x86_64: Align uint64_t/int64_t structure member to 8 bytes"Narayan Kamath2014-06-032-0/+78
| |\ \ | | |/ | | | | | | | | | * commit 'f1dd859baa114995bcbcfb7119e939d0b4f45ed5': x86_64: Align uint64_t/int64_t structure member to 8 bytes
| | * x86_64: Align uint64_t/int64_t structure member to 8 bytesFengwei Yin2014-05-302-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | To make sure the stature which pass between 32/64bit process have same memory layout for 32/64bit. Signed-off-by: Fengwei Yin <fengwei.yin@intel.com> Co-Authored-by: Narayan Kamath <narayan@google.com> (Unit test only.) Change-Id: I1bc2d12cce41ec0bc484adcaf968f274bec75c12
| * | am cfba3bf1: am c9fcaf37: Merge "Change InputMessage.motion.pointerSize to a ↵Narayan Kamath2014-05-161-8/+8
| |\ \ | | |/ | | | | | | | | | | | | | | | uint32_t." * commit 'cfba3bf1606dfdb1daf1be1c19176180660ae19d': Change InputMessage.motion.pointerSize to a uint32_t.
| | * Change InputMessage.motion.pointerSize to a uint32_t.Narayan Kamath2014-05-161-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures it's the same size in both 32 and 64 bit processes and also brings it in line with struct MotionEntry. (cherry-picked from bc6001b026069714177526eb1120b0011d6f2a51) Change-Id: I28e87050478920a54132efbbb8138076ebad1409
| * | Generate ACTION_CANCEL on joystick disconnect. DO NOT MERGEMichael Wright2014-03-241-17/+12
| | | | | | | | | | | | | | | Bug: 11480300 Change-Id: I5a4096970c9e588d134f05dd0eb3a9c91c836b2f
| * | Parse LED mappings in keylayout files. DO NOT MERGEMichael Wright2014-03-032-2/+85
| | | | | | | | | | | | Change-Id: I2b34939cc0df256e6b872502ea93f2884b4c8334
| * | Add method to apply offset to PointerCoords. (DO NOT MERGE)Jeff Brown2014-02-111-0/+5
| |/ | | | | | | Change-Id: I3dc2ba22b026e5b8e1c3d90f7366ec09a59ce6b6
* | Fix InputEvent_test.Narayan Kamath2014-05-061-5/+5
| | | | | | | | | | | | | | | | | | | | Axis 0 sets the MSB and Axis 63 sets the LSB, and not the other way round like the test expects. This was broken by commit 38dcdff3087f01 which moved this code over to using BitSet. Change-Id: I63a72abe7ce14720b0bf26e5f6d651bb42452f79
* | Change InputMessage.motion.pointerSize to a uint32_t.Narayan Kamath2014-05-021-8/+8
| | | | | | | | | | | | | | | | This ensures it's the same size in both 32 and 64 bit processes and also brings it in line with struct MotionEntry. Change-Id: I66bb8b8d8664763e7dcbd489686051f563d5e1dc
* | Move key attribute information out of native.Michael Wright2014-04-225-116/+17
| | | | | | | | | | | | | | | | Native doesn't ever actually care about the attributes of keys, so move all of it up into the managed layer and move all of the key names down so they're defined once. Change-Id: Ic8ded13ce050b2b98744735ff50d11e8d882d7d5
* | Generate ACTION_CANCEL on joystick disconnect.Michael Wright2014-03-201-17/+12
| | | | | | | | | | Bug: 11480300 Change-Id: I46706838eec0711c6bf345301e7b4ccbad83b063
* | Add support for injecting events into ActivityContainers.Jeff Brown2014-02-111-0/+5
| | | | | | | | | | | | | | | | | | Enhanced the input system to support concurrent dispatch of touch events on multiple displays which is required for this to work. Add method to apply offset to PointerCoords. Change-Id: I55fe4a9a8785ae5a2d3341d214fa3c5107f3963a
* | am 47f0b989: am 3223217a: Only consume touches up until the frame timeMichael Wright2013-10-211-3/+6
|\ \ | |/ | | | | | | * commit '47f0b9894b78a76a1257e0f3299cbe5446035c09': Only consume touches up until the frame time
| * Only consume touches up until the frame timeMichael Wright2013-10-211-3/+6
| | | | | | | | | | | | | | When resampling is disabled, it's currently possible to consume touches after the current frame time. This breaks some guarantees and could cause unexpected behaviors. Change-Id: I99908a2cac2df9f795dd4a07188b4451213cf3e4
* | Parse LED mappings in keylayout filesMichael Wright2013-10-182-2/+85
| | | | | | | | Change-Id: I6bc3760341868015f054d9866e2616a312da94e0
* | am 06c964d9: am 9c0dfa09: Merge "Eliminate latency when resampling is ↵Dave Burke2013-10-101-5/+5
|\ \ | |/ | | | | | | | | | | disabled" into klp-dev * commit '06c964d9b31ac81d3521f97427cdab77ee7d1cff': Eliminate latency when resampling is disabled
| * Eliminate latency when resampling is disabledMichael Wright2013-10-101-5/+5
| | | | | | | | | | | | | | Since the latency was introduced to avoid egregious errors during resampling, remove it when we aren't resampling. Change-Id: Ia8e9a9afb1e16212fec81a8c9c661c598e1b0ebf
| * Remove input flinger stubs. (DO NOT MERGE)Jeff Brown2013-08-222-60/+0
|/ | | | | Bug: 10446930 Change-Id: I4dd46f539cd2a2e324dfc83b45ba2787f7404a4a
* Add controller numbers for gamepads / joysticksMichael Wright2013-07-221-9/+8
| | | | Change-Id: I5294aabbadb836a6a4c7ce76a670abcf50c1f885
* Merge "Add input device property for buttons under touchpads"Michael Wright2013-07-191-0/+2
|\
| * Add input device property for buttons under touchpadsMichael Wright2013-07-111-0/+2
| | | | | | | | | | Bug: 8990644 Change-Id: I6df5fb9e11199173d62523928082db428af55394
* | Merge "Completely remove skia dependency from libinput."Jeff Brown2013-07-162-6/+18
|\ \
| * | Completely remove skia dependency from libinput.Jeff Brown2013-07-152-6/+18
| | | | | | | | | | | | | | | | | | Including the tests... Change-Id: I6ec8f1a5ae7e7514831d7e3b430b3b37b0841b92
* | | Merge "Add a keycode to switch audio tracks (2/2)"michaelwr2013-07-161-0/+2
|\ \ \ | |/ / |/| |
| * | Add a keycode to switch audio tracks (2/2)Jaekyun Seok2013-07-121-0/+2
| |/ | | | | | | | | | | | | A key to switch audio tracks is general on media devices like blu-ray. Bug: 9728155 Change-Id: I13ebbc64321f3cf10370f9a605f3d94ea0d16d6d
* | Fix PDK build.Jeff Brown2013-07-152-41/+40
| | | | | | | | | | | | Quick hack to remove Skia dependency from libinput. Change-Id: Ibaf2e312236f5e3f7251fa903ce381456a77467c
* | Add skeleton of input flinger.Jeff Brown2013-07-152-0/+60
|/ | | | Change-Id: I7f25080e446d4d3d9de9b18fe432a09bc751e0d9
* do not build libinput in PDKkeunyoung2013-07-021-0/+4
| | | | | | | - skia is not available in PDK, and it causes build break. bug: 9528927 Change-Id: I89663e4a4bd52858506e3b52fbf8ca85d9992363
* Move input library code from frameworks/base.Jeff Brown2013-07-0115-0/+6031
Change-Id: I4983db61b53e28479fc90d9211fafff68f7f49a6