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

Function GUI_StrategicMap_ClickedRegion

src/gui/gui.c:3063–3075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3061}
3062
3063static int16 GUI_StrategicMap_ClickedRegion(void)
3064{
3065 uint16 key;
3066
3067 GUI_StrategicMap_AnimateArrows();
3068
3069 if (Input_Keyboard_NextKey() == 0) return 0;
3070
3071 key = Input_WaitForValidInput();
3072 if (key != 0xC6 && key != 0xC7) return 0;
3073
3074 return g_fileRgnclkCPS[(g_mouseClickY - 24) * 304 + g_mouseClickX - 8];
3075}
3076
3077static bool GUI_StrategicMap_FastForwardToggleWithESC(void)
3078{

Callers 1

Calls 3

Input_Keyboard_NextKeyFunction · 0.85
Input_WaitForValidInputFunction · 0.85

Tested by

no test coverage detected