Skip to content

Gdk.TouchpadEvent

class — extends 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

get_deltas

def get_deltas(self) -> tuple[float, float]

Extracts delta information from a touchpad event.

get_gesture_phase

def get_gesture_phase(self) -> TouchpadGesturePhase

Extracts the touchpad gesture phase from a touchpad event.

get_n_fingers

def get_n_fingers(self) -> int

Extracts the number of fingers from a touchpad event.

get_pinch_angle_delta

def get_pinch_angle_delta(self) -> float

Extracts the angle delta from a touchpad pinch event.

get_pinch_scale

def get_pinch_scale(self) -> float

Extracts the scale from a touchpad pinch event.