forked from QubesOS/qubes-app-linux-input-proxy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for tablet/touchscreen devices
Add 'absinfo' field to the protocol handshake, containing array of input_absinfo structures (ABS_CNT of them). Since the first message contains a size of input_proxy_device_caps_msg structure, both forward and backward compatibility can be achieved. On receiver part, assume given absolute axis present only if both relevant absbit is set and min/max info is provided. And of course only if current policy allows it (--tablet option). Then register present axis in uinput driver. While registering axis, set also other info (precission, fuzz, flat), as it may be needed for touchscreen devices. --tablet option allows all absolute axis and selected touchscreen/tablet related buttons. According to tests, BTN_TOUCH is most commonly used. Handling events is already in place - no changes are needed. On sending part, extract absinfo from actual device and send that information to receiver. No other changes are needed. Fixes QubesOS/qubes-issues#2281
- Loading branch information
Showing
3 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters