Button¶
EVB Buttons
Event handlers
These will be called when state of the corresponding button is changed:
Member functions and properties
These handlers are called by process() whenever state of ‘up’, ‘down’, etc buttons have changed since last process() call
Check if ‘up’ button is pressed.
Check if ‘down’ button is pressed.
Check if ‘left’ button is pressed.
Check if ‘right’ button is pressed.
Check if ‘enter’ button is pressed.
Checks if any button is pressed.
Check if ‘backspace’ button is pressed.
Returns list of names of pressed buttons.
Check if currently pressed buttons exactly match the given list.
Return our corresponding evdev device object
This handler is called by process() whenever state of any button has changed since last process() call. changed_buttons is a list of tuples of changed button names and their states.
Check for currenly pressed buttons. If the new state differs from the old state, call the appropriate button event handlers.
Wait for the button to be pressed down and then released. Both actions must happen within timeout_ms.
Wait for the button to be pressed down.
Wait for the button to be released.