Alchemy

keystate.h

games/tbs/include/keystate.h on GitHub

Globals

gKeysPressedLatch

extern u32 gKeysPressedLatch

Presses since a reader last cleared it.

Used by BattleEvent_Playback, DjinnMenu_SelectDjinn, System_VBlankHandler, UiText_CheckTextDismissed, UiWork_StepChannelScript.

Line 37

gKeysHeldLast

extern u32 gKeysHeldLast

gKeysHeld when the frame loop last read it.

Used by Input_UpdateKeyRepeatAndDirection.

Line 38

gKeysHeldAtVBlank

extern u32 gKeysHeldAtVBlank

gKeysHeld at the previous VBlank.

Used by System_VBlankHandler.

Line 39

gKeyRepeatTimer

extern s32 gKeyRepeatTimer

Frames until the held keys repeat; -1 makes them repeat at once.

Used by Input_ResetKeyRepeat, Input_UpdateKeyRepeatAndDirection, System_VBlankHandler.

Line 41

Also, globals without a comment: gKeysHeld, gKeysPressed, gKeysRepeat, gKeysRepeatDirected, gKeysDirection.

On this page