pydualsense event system classes¶
The Event System implements the event system used for the button callbacks
- class pydualsense.event_system.Event
Bases:
object
Base class for the event driven system
initialise event system
- __init__() None
initialise event system
- subscribe(fn: Callable) Any
add a event subscription
- Parameters:
fn (function) – _description_
- unsubscribe(fn: Callable) Any
delete event subscription fn
- Parameters:
fn (function) – _description_