Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

include/dbutton.h File Reference

Interface: query raw button states. More...

Go to the source code of this file.

Defines

#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...


Detailed Description

Interface: query raw button states.

Author:
Markus L. Noga <markus@noga.de>
Warning:
this is raw, unprocessed input. buttons will bounce. please use dkey functions instead.

Definition in file dbutton.h.


Define Documentation

#define BUTTON_ONOFF   0x0002
 

the on/off button.

Definition at line 42 of file dbutton.h.

#define BUTTON_PROGRAM   0x8000
 

the program button.

Definition at line 45 of file dbutton.h.

#define BUTTON_RUN   0x0004
 

the run button.

Definition at line 43 of file dbutton.h.

#define BUTTON_VIEW   0x4000
 

the view button.

Definition at line 44 of file dbutton.h.

#define PRESSED state,
button       (!RELEASED(state,button))
 

true if all of the specified buttons are pressed.

Definition at line 56 of file dbutton.h.

#define RELEASED state,
button       ((state) & (button))
 

true if any of the specified buttons is released.

Definition at line 52 of file dbutton.h.


Function Documentation

int dbutton void    [inline]
 

get button states.

masks as defined above

Definition at line 67 of file dbutton.h.


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Tue Dec 10 00:09:06 2002 for brickOS C++ by doxygen 1.2.15