TouchpadEvent#

class TouchpadEvent(*args, **kwargs)#

Superclasses: Event

An event related to a gesture on a touchpad device.

Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.

Methods#

class TouchpadEvent
get_deltas() Tuple[float, float]#

Extracts delta information from a touchpad event.

get_gesture_phase() TouchpadGesturePhase#

Extracts the touchpad gesture phase from a touchpad event.

get_n_fingers() int#

Extracts the number of fingers from a touchpad event.

get_pinch_angle_delta() float#

Extracts the angle delta from a touchpad pinch event.

get_pinch_scale() float#

Extracts the scale from a touchpad pinch event.