Touch

class Touch[source]

Bases: object

Reads touch events from a Linux input device via evdev.

Works with both single-touch (ABS_X/ABS_Y) and multi-touch (ABS_MT_POSITION_X/Y) devices, treating all contacts as a single pointer.

Touch events are debounced by TOUCH_INTERVAL seconds. Each event that passes the debounce filter is forwarded directly to manager.touch_trigger.trigger(x, y).

__init__() None[source]

Methods

stop() None[source]

Stops the reader thread.