OSDN Git Service

inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer
authorJon Doe <tuksgig@gmail.com>
Sun, 23 Dec 2018 14:50:00 +0000 (22:50 +0800)
committerMauro Rossi <issor.oruam@gmail.com>
Mon, 24 Jul 2023 16:03:27 +0000 (18:03 +0200)
commit54e498540189bdd23bb529188d7cbaec6b0bd04f
tree00009d5b50feeb37b298ab6069f72be109b1c026
parentc6c5bb1dcc26ea999c4a1639222f49beebde1adf
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.

Change-Id: I15c8fd7bb8e08e9623d093372809b9a01708a85f
services/inputflinger/reader/EventHub.cpp
services/inputflinger/reader/mapper/CursorInputMapper.cpp
services/inputflinger/reader/mapper/CursorInputMapper.h