Interface: query raw button states.
More...
Go to the source code of this file.
|
#define | BUTTON_ONOFF 0x0002 |
| the on/off button
|
|
#define | BUTTON_RUN 0x0004 |
| the run button
|
|
#define | BUTTON_VIEW 0x4000 |
| the view button
|
|
#define | BUTTON_PROGRAM 0x8000 |
| the program button
|
|
#define | RELEASED(state, button) ((state) & (button)) |
| true if any of the specified buttons is released
|
|
#define | PRESSED(state, button) (!RELEASED(state,button)) |
| true if all of the specified buttons are pressed
|
|
|
int | dbutton (void) |
| get button states
|
|
Interface: query raw button states.
- Author
- Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
- Warning
- this is raw, unprocessed input. buttons will bounce. please use dkey functions instead.
Definition in file dbutton.h.
◆ BUTTON_ONOFF
#define BUTTON_ONOFF 0x0002 |
the on/off button
Definition at line 42 of file dbutton.h.
◆ BUTTON_PROGRAM
#define BUTTON_PROGRAM 0x8000 |
the program button
Definition at line 45 of file dbutton.h.
◆ BUTTON_RUN
#define BUTTON_RUN 0x0004 |
the run button
Definition at line 43 of file dbutton.h.
◆ BUTTON_VIEW
#define BUTTON_VIEW 0x4000 |
the view button
Definition at line 44 of file dbutton.h.
◆ PRESSED
#define PRESSED |
( |
|
state, |
|
|
|
button |
|
) |
| (!RELEASED(state,button)) |
true if all of the specified buttons are pressed
Definition at line 56 of file dbutton.h.
◆ RELEASED
#define RELEASED |
( |
|
state, |
|
|
|
button |
|
) |
| ((state) & (button)) |
true if any of the specified buttons is released
Definition at line 52 of file dbutton.h.
◆ dbutton()
get button states
masks as defined above
Definition at line 67 of file dbutton.h.