MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GUI_StrategicMap_FastForwardToggleWithESC

Function GUI_StrategicMap_FastForwardToggleWithESC

src/gui/gui.c:3077–3088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3075}
3076
3077static bool GUI_StrategicMap_FastForwardToggleWithESC(void)
3078{
3079 if (Input_Keyboard_NextKey() == 0) return s_strategicMapFastForward;
3080
3081 if (Input_WaitForValidInput() != 0x1B) return s_strategicMapFastForward;
3082
3083 s_strategicMapFastForward = !s_strategicMapFastForward;
3084
3085 Input_History_Clear();
3086
3087 return s_strategicMapFastForward;
3088}
3089
3090static void GUI_StrategicMap_DrawText(const char *string)
3091{

Callers 3

GUI_StrategicMap_ShowFunction · 0.85

Calls 3

Input_Keyboard_NextKeyFunction · 0.85
Input_WaitForValidInputFunction · 0.85
Input_History_ClearFunction · 0.85

Tested by

no test coverage detected