struct INPUT_STATE
The input group. More…
Declared in definitions.h.
Fields
| Name | Description | |
|---|---|---|
volatile Uint32 | data | keys down now |
volatile Uint32 | push | keys that went down this tick |
Uint32 | prevVblankData | held at the previous VBlank |
volatile Uint32 | repeat | held keys repeating: after 19 ticks, then every 6 |
volatile Uint32 | direction | repeat with at most one D-pad direction |
volatile Uint32 | prevDirection | D-pad direction kept: of several held, the one added last |
Uint32 | prevData | held when the tick loop last read it |
Uint32 | pendingPush | presses since a reader last cleared it |
volatile Sint32 | repeatTimer | ticks until held keys repeat; -1 repeats at once |
Description
The input group. The keypad state the VBlank interrupt keeps. The keypad
state (PerWork): the keys held, newly pressed and repeating, the D-pad
direction kept, and the repeat timer.
struct INPUT_STATE
Referenced by btDebugBattleRunMenu(), fdInputGetDpadAngleEightWay(), fdMapScreenShow(), mnMoveGridCursor(), mnWatchStart(), PerWork, scClearEnterPassword(), syIdleForever() and syVBlankHandler().
Definition at line 1113 of file definitions.h.
Fields in detail
data
volatile Uint32 data
keys down now
push
volatile Uint32 push
keys that went down this tick
prevVblankData
Uint32 prevVblankData
held at the previous VBlank
repeat
volatile Uint32 repeat
held keys repeating: after 19 ticks, then every 6
direction
volatile Uint32 direction
repeat with at most one D-pad direction
prevDirection
volatile Uint32 prevDirection
D-pad direction kept: of several held, the one added last
prevData
Uint32 prevData
held when the tick loop last read it
pendingPush
Uint32 pendingPush
presses since a reader last cleared it
repeatTimer
volatile Sint32 repeatTimer
ticks until held keys repeat; -1 repeats at once