button.c File Reference
Common Button and Joystick initialization and management.
More...
Go to the source code of this file.
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
Return current button mode.
- Returns:
- Current button mode.
Definition at line 261 of file button.c.
Return current button state.
- Returns:
- Current button state.
Definition at line 309 of file button.c.
Set new button mode.
- Parameters:
-
| [in] | mode | The new button mode. |
Definition at line 279 of file button.c.
| void BUTTON_WaitForRelease |
( |
void |
|
) |
|
Disable temporarily any new button event.
Definition at line 338 of file button.c.
Decodes the Joystick direction.
- Returns:
- The direction value.
Definition at line 355 of file button.c.
| void JOYSTICK_WaitForRelease |
( |
void |
|
) |
|
Disable temporarily any new button event.
Definition at line 375 of file button.c.