thingz.thingz_button_touch
Thingz button touch
- class thingz.thingz_button_touch.ButtonTouch
Control Galaxia’s touch buttons
- was_touched() → bool
- Returns:
True if button has been touched since last call, False otherwise
- Return type:
- get_touches() → int
Get the number of touches since the last call
- Returns:
The number of touches since the last call
- Return type:
- on_touched(callback: Callable[Button | None]) → None
Register a callaback bind to touch event
- Parameters:
callback (Callable[Optional[ButtonTouch]]) – The function to call when the event occurs. When called the button will be passed as paramater