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.
gKeysHeldLast
extern u32 gKeysHeldLast
gKeysHeld when the frame loop last read it.
Used by Input_UpdateKeyRepeatAndDirection.
gKeysHeldAtVBlank
extern u32 gKeysHeldAtVBlank
gKeysHeld at the previous VBlank.
Used by System_VBlankHandler.
gKeyRepeatTimer
extern s32 gKeyRepeatTimer
Frames until the held keys repeat; -1 makes them repeat at once.
Used by Input_ResetKeyRepeat, Input_UpdateKeyRepeatAndDirection, System_VBlankHandler.
Also, globals without a comment: gKeysHeld, gKeysPressed, gKeysRepeat, gKeysRepeatDirected, gKeysDirection.