\section{include/dbutton.h File Reference}
\label{dbutton_8h}\index{include/dbutton.h@{include/dbutton.h}}
Interface: query raw button states. 

\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf BUTTON\_\-ONOFF}\ 0x0002
\begin{CompactList}\small\item\em the on/off button \item\end{CompactList}\item 
\#define {\bf BUTTON\_\-RUN}\ 0x0004
\begin{CompactList}\small\item\em the run button \item\end{CompactList}\item 
\#define {\bf BUTTON\_\-VIEW}\ 0x4000
\begin{CompactList}\small\item\em the view button \item\end{CompactList}\item 
\#define {\bf BUTTON\_\-PROGRAM}\ 0x8000
\begin{CompactList}\small\item\em the program button \item\end{CompactList}\item 
\#define {\bf RELEASED}(state, button)\ ((state) \& (button))
\begin{CompactList}\small\item\em true if any of the specified buttons is released \item\end{CompactList}\item 
\#define {\bf PRESSED}(state, button)\ (!RELEASED(state,button))
\begin{CompactList}\small\item\em true if all of the specified buttons are pressed \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf dbutton} (void)
\begin{CompactList}\small\item\em get button states \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Interface: query raw button states. 

\begin{Desc}
\item[Author:]Markus L. Noga $<${\tt markus@noga.de}$>$\end{Desc}
\begin{Desc}
\item[Warning:]this is raw, unprocessed input. buttons will bounce. please use dkey functions instead.\end{Desc}


Definition in file {\bf dbutton.h}.

\subsection{Define Documentation}
\index{dbutton.h@{dbutton.h}!BUTTON_ONOFF@{BUTTON\_\-ONOFF}}
\index{BUTTON_ONOFF@{BUTTON\_\-ONOFF}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BUTTON\_\-ONOFF\ 0x0002}\label{dbutton_8h_a0}


the on/off button 



Definition at line 42 of file dbutton.h.

Referenced by kmain().\index{dbutton.h@{dbutton.h}!BUTTON_PROGRAM@{BUTTON\_\-PROGRAM}}
\index{BUTTON_PROGRAM@{BUTTON\_\-PROGRAM}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BUTTON\_\-PROGRAM\ 0x8000}\label{dbutton_8h_a3}


the program button 



Definition at line 45 of file dbutton.h.

Referenced by kmain().\index{dbutton.h@{dbutton.h}!BUTTON_RUN@{BUTTON\_\-RUN}}
\index{BUTTON_RUN@{BUTTON\_\-RUN}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BUTTON\_\-RUN\ 0x0004}\label{dbutton_8h_a1}


the run button 



Definition at line 43 of file dbutton.h.\index{dbutton.h@{dbutton.h}!BUTTON_VIEW@{BUTTON\_\-VIEW}}
\index{BUTTON_VIEW@{BUTTON\_\-VIEW}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define BUTTON\_\-VIEW\ 0x4000}\label{dbutton_8h_a2}


the view button 



Definition at line 44 of file dbutton.h.\index{dbutton.h@{dbutton.h}!PRESSED@{PRESSED}}
\index{PRESSED@{PRESSED}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define PRESSED(state, button)\ (!RELEASED(state,button))}\label{dbutton_8h_a5}


true if all of the specified buttons are pressed 



Definition at line 56 of file dbutton.h.

Referenced by kmain().\index{dbutton.h@{dbutton.h}!RELEASED@{RELEASED}}
\index{RELEASED@{RELEASED}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RELEASED(state, button)\ ((state) \& (button))}\label{dbutton_8h_a4}


true if any of the specified buttons is released 



Definition at line 52 of file dbutton.h.

\subsection{Function Documentation}
\index{dbutton.h@{dbutton.h}!dbutton@{dbutton}}
\index{dbutton@{dbutton}!dbutton.h@{dbutton.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int dbutton (void)\hspace{0.3cm}{\tt  [inline]}}\label{dbutton_8h_a6}


get button states 

masks as defined above 

Definition at line 67 of file dbutton.h.

References \_\-\_\-asm\_\-\_\-().

Referenced by kmain().