button module
- button.a_button()
Gets the A button’s state (pressed or not pressed).
- Returns:
1 for pressed, 0 for not pressed
- Return type:
int
See also
a_button_clicked
- button.a_button_clicked()
Gets the A button’s state (pressed or not pressed).
This function blocks until the button is no longer pressed.
- Returns:
1 for pressed, 0 for not pressed
- Return type:
int
See also
a_button
- button.any_button()
Determines whether or not any of the buttons are pressed.
- Returns:
1 for pressed, 0 for not pressed
- Return type:
int
- button.b_button()
Gets the B button’s state (pressed or not pressed).
- Returns:
1 for pressed, 0 for not pressed
- Return type:
int
See also
a_button_clicked
- button.b_button_clicked()
Gets the B button’s state (pressed or not pressed).
This function blocks until the button is no longer pressed.
- Returns:
1 for pressed, 0 for not pressed
- Return type:
int
See also
a_button