Button¶
EV3 Buttons
Event handlers
These will be called when state of the corresponding button is changed:
Member functions and properties
Returns list of names of pressed buttons.
Checks if any button is pressed.
Check if
backspacebutton is pressed.
Check if currently pressed buttons exactly match the given list
buttons.
Check if
downbutton is pressed.
Check if
enterbutton is pressed.
Return our corresponding evdev device object
Check if
leftbutton is pressed.
This handler is called by
process()whenever state of any button has changed since lastprocess()call.changed_buttonsis a list of tuples of changed button names and their states.
Check for currenly pressed buttons. If the
new_statediffers from the old state, call the appropriate button event handlers (on_up, on_down, etc).
Check if
rightbutton is pressed.
Check if
upbutton is pressed.
Wait for
buttonsto be pressed down and then released. Both actions must happen withintimeout_ms.
Wait for
buttonsto be pressed down.
Wait for
buttonsto be released.