Interface: query raw button states. More...
Go to the source code of this file.
Macros | |
| #define | BUTTON_ONOFF 0x0002 |
| the on/off button More... | |
| #define | BUTTON_RUN 0x0004 |
| the run button More... | |
| #define | BUTTON_VIEW 0x4000 |
| the view button More... | |
| #define | BUTTON_PROGRAM 0x8000 |
| the program button More... | |
| #define | RELEASED(state, button) ((state) & (button)) |
| true if any of the specified buttons is released More... | |
| #define | PRESSED(state, button) (!RELEASED(state,button)) |
| true if all of the specified buttons are pressed More... | |
Functions | |
| int | dbutton (void) |
| get button states More... | |
Interface: query raw button states.
Definition in file dbutton.h.
| #define PRESSED | ( | state, | |
| button | |||
| ) | (!RELEASED(state,button)) |
| #define RELEASED | ( | state, | |
| button | |||
| ) | ((state) & (button)) |
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |
1.8.9.1