The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
#include "SoKeys.h"Defines | |
| #define | SO_REG_KEY |
| GBA keypress register. | |
Functions | |
| void | SoKeysUpdate (void) |
| Updates the key status. | |
| u16 | SoKeysGetState (void) |
| Returns the current key status bitmap. | |
| bool | SoKeysDown (u16 a_Keys) |
| Returns true if the given keys are down at the moment;. | |
| bool | SoKeysPressed (u16 a_Keys) |
| Tests the given keys have been pressed in between the last two calls to SoKeysUpdate. | |
| bool | SoKeysReleased (u16 a_Keys) |
| Tests the given keys have been released in between the last two calls to SoKeysUpdate. | |
| bool | SoKeysPressedRepeat (u16 a_Keys) |
| Not yet supported. | |
| void | SoKeysSetRepeatDelay (u16 a_nDelay) |
| Not yet supported. | |
| void | SoKeysSetRepeatSpeed (u16 a_nSpeed) |
| Not yet supported. | |
Variables | |
| u16 | s_KeysDown |
| Contains which keys are down at the moment. | |
| u16 | s_KeysPressed |
| Contains which keys have been pressed. | |
| u16 | s_KeysReleased |
| Contains which keys have been released. | |
| u16 | s_nRepeat |
| Key repeat count. | |
| u16 | s_nRepeatDelay |
| Key repeat delay. | |
| u16 | s_nRepeatSpeed |
| Key repeat speed. | |
|
|
GBA keypress register.
For internal use only.
|
|
|
Contains which keys are down at the moment.
For internal use only.
|
|
|
Contains which keys have been pressed.
For internal use only.
|
|
|
Contains which keys have been released.
For internal use only.
|
|
|
Key repeat count.
For internal use only.
|
|
|
Key repeat delay.
For internal use only.
|
|
|
Key repeat speed.
For internal use only.
|