Event

Functions for handling user input events.

Poll


poll() → list[Event]

Poll for all pending user input events.

This clears input states and returns a list of events that occurred since the last call.

Returns

list[Event] : A list of events that have occurred since the last call to poll().