Debian Codegraph @

src/plugins/generic/evdevtouch/README

raw
1 Generic plug-in for evdev multiple touch (ABS_MT) events.
2 Supports protocol type A & B.
3 Type B is supported both directly and via libmtdev.
4 The protocol type will be detected automatically.
5
6 libmtdev is automatically detected based on library availability. To disable it,
7 pass -no-mtdev to configure.
8
9 Single-touch devices reporting ABS_X and Y are supported too. Keep in
10 mind however that the libudev-based device discovery may not be able
11 to recognize such devices. If mouse events are sufficient, it may be
12 better to use evdevmouse or tslib with such devices.
13
14 To use this plugin, pass -plugin EvdevTouch on the command line.
15
16 If automatic detection does not work, use -plugin
17 EvdevTouch:/dev/input/eventN to explicitly set the device file
18 name.
19
20 By default the surface of the touch device is mapped to the entire
21 screen. If this is not desired, pass force_window in the plugin
22 specification as shown in the example above. This will cause mapping
23 the touch surface to the active window instead. For example:
24 ./fingerpaint -plugin EvdevTouch:force_window
25
26 Only touch events are generated, mouse events are not. Be aware however
27 that ignored touch events will generate a mouse event from the first
28 touch point by default. See AA_SynthesizeMouseForUnhandledTouchEvents.
29
30 If no evdev events are read, X may be grabbing the device.
31 Disable the synaptics driver from X or temporarily disable the device
32 by running xinput set-prop <device> <device enabled property> 0.
33 Use xinput list and xinput list-props to figure out the values.
34
35 When not running on a windowing system (eglfs, kms, etc.) and having a
36 touchpad, the evdevmouse and touch plugins can be combined to get both
37 mouse and touch events:
38 ./app -platform kms -plugin EvdevTouch -plugin EvdevMouse
39
40 If the input device cannot be accessed, set up a udev rule.
41 For example:
42 sudo cp 70-qtouchscreen.rules /etc/udev/rules.d
43 sudo udevadm trigger --subsystem-match=input
44 The sample udev rule matches any touchpad or touchscreen device.
45 If there are multiple ones, specify the device manually as described above.