OSDN Git Service

inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer android-x86-8.1-r1
authorJon Doe <tuksgig@gmail.com>
Sun, 23 Dec 2018 14:50:00 +0000 (22:50 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 26 Dec 2018 04:16:58 +0000 (12:16 +0800)
commitbf8d48c1742e9df94bf25742248a1a282011f5cc
treed5ca7b31d58edc22c450388b3050ea9307bd72da
parent9f7c7abb51f71190f5e50e9f2ea014329058da66
inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer

Qemu and VirtualBox use tablet-style inputs. However, it's difficult to
work with the current "invisible finger" or "drag pointer" interface
provided to the virtual absolute coordinate pointing devices.
Instead, this patch classifies them as a regular mouse pointer
(INPUT_DEVICE_CLASS_CURSOR), which is more intuitive to work with.
services/inputflinger/EventHub.cpp
services/inputflinger/InputReader.cpp
services/inputflinger/InputReader.h