Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

legOS/include/dbutton.h File Reference

query raw button states. More...


Defines

#define BUTTON_ONOFF
the on/off button.

#define BUTTON_RUN
the run button.

#define BUTTON_VIEW
the view button.

#define BUTTON_PROGRAM
the program button.

#define RELEASED (state,button)
true if any of the specified buttons is released.

#define PRESSED (state,button)
true if all of the specified buttons are pressed.


Functions

int dbutton (void)
get button states. More...


Detailed Description

query raw button states.

Author(s):
Markus L. Noga <markus@noga.de>

Warning:
this is raw, unprocessed input. buttons will bounce. please use dkey functions instead.

Define Documentation

#define BUTTON_ONOFF ()

the on/off button.

#define BUTTON_RUN ()

the run button.

#define BUTTON_VIEW ()

the view button.

#define BUTTON_PROGRAM ()

the program button.

#define RELEASED (state, button)

true if any of the specified buttons is released.

#define PRESSED (state, button)

true if all of the specified buttons are pressed.


Function Documentation

int dbutton (void) [inline]

get button states.

masks as defined above

legOS-0.2.4 is released under the Mozilla Public License. Original code copyright 1998-1999 by the authors.