Skip to Content
The Alchemy Project

struct INPUT_STATE

The input group. More…

Declared in definitions.h.

Fields

NameDescription
volatile Uint32datakeys down now
volatile Uint32pushkeys that went down this tick
Uint32prevVblankDataheld at the previous VBlank
volatile Uint32repeatheld keys repeating: after 19 ticks, then every 6
volatile Uint32directionrepeat with at most one D-pad direction
volatile Uint32prevDirectionD-pad direction kept: of several held, the one added last
Uint32prevDataheld when the tick loop last read it
Uint32pendingPushpresses since a reader last cleared it
volatile Sint32repeatTimerticks 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