hollyhock
|
Functions used to retrieve user input via the touch screen or keypad. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | InputEvent |
Functions | |
int | GetInput (struct InputEvent *event, uint32_t unknown1, uint32_t unknown2) |
bool | Input_GetKeyState (InputScancode *scancode) |
bool | Input_IsAnyKeyDown () |
Functions used to retrieve user input via the touch screen or keypad.
Provides the GetInput method, a function which polls for input events (screen touches and key presses).
int GetInput | ( | struct InputEvent * | event, |
uint32_t | unknown1, | ||
uint32_t | unknown2 | ||
) |
Polls for any input events.
The event
structure should be zeroed before calling GetInput.
[out] | event | The input event's data. |
unknown1 | An unknown value. The value 0xFFFFFFFF must be supplied. | |
unknown2 | An unknown value. The value 0x10 must be supplied. |
bool Input_GetKeyState | ( | InputScancode * | scancode | ) |
Returns true if the specified key is currently down.
[in] | scanCode | The scancode of the key to check. |
bool Input_IsAnyKeyDown | ( | ) |
Returns true if any key on the keyboard is currently down.