diff options
author | 2019-07-23 14:18:59 +0800 | |
---|---|---|
committer | 2019-08-26 10:17:16 +0800 | |
commit | 2c9a3341977e315ffb8e78cac2343a2682e71dc3 (patch) | |
tree | 45d42f6d597a0afa250937113088731557a657ac /libs/gui/Surface.cpp | |
parent | ad294ee69c56a29e518cbb23a00811c42af262ab (diff) |
Add associated function to physical keyboard
The function keys (HOME/BACK/DPAD...) may not always be virtual keys,
so we need provide a static input mapping mechanism to the physical
keyboard to make sure key events can dispatch to the corresponding
display.
- Find the associated viewport for keyboard when display info changed
and has an associated display port specified.
- Should disable the input device when an associated port specified but
no display viewport found.
- Changed getAssociatedDisplay -> getAssociatedDisplayId.
- Add test cases to test input device and keyboard associated mapping.
Bug: 137693244
Test: atest -a libinput_tests inputflinger_tests
Change-Id: If218f55645a78a4b50cec92b35b0dbae641dd1a1
Diffstat (limited to 'libs/gui/Surface.cpp')
0 files changed, 0 insertions, 0 deletions