def __init__(self, touchpad: Touchpad) -> None: self._listeners: list[Callable[[Gesture], None]] = [] self._active_gesture: Optional[Gesture] = None self.config = GesturesConfig() touchpad.listener(self.on_update)