CircleOS  1
Functions
button.c File Reference

Common Button and Joystick initialization and management. More...

Go to the source code of this file.

Functions

enum BUTTON_mode BUTTON_GetMode (void)
 
void BUTTON_SetMode (enum BUTTON_mode mode)
 
enum BUTTON_state BUTTON_GetState (void)
 
void BUTTON_WaitForRelease (void)
 
enum JOYSTICK_state JOYSTICK_GetState (void)
 
void JOYSTICK_WaitForRelease (void)
 

Detailed Description

Author
FL
Date
07/2007
10/2008
Version
3.0 Add joystick for Primer 2
Date
10/2009
Version
4.0 Add Open4 Primer

Definition in file button.c.

Function Documentation

enum BUTTON_mode BUTTON_GetMode ( void  )

Return current button mode.

Returns
Current button mode.

Definition at line 267 of file button.c.

enum BUTTON_state BUTTON_GetState ( void  )

Return current button state.

Returns
Current button state.

Definition at line 315 of file button.c.

void BUTTON_SetMode ( enum BUTTON_mode  mode)

Set new button mode.

Parameters
[in]modeThe new button mode.

Definition at line 285 of file button.c.

void BUTTON_WaitForRelease ( void  )

Disable temporarily any new button event.

Definition at line 344 of file button.c.

enum JOYSTICK_state JOYSTICK_GetState ( void  )

Decodes the Joystick direction.

Returns
The direction value.

Definition at line 361 of file button.c.

void JOYSTICK_WaitForRelease ( void  )

Disable temporarily any new button event.

Definition at line 381 of file button.c.