MCPcopy Create free account
hub / github.com/diasurgical/devilution / ProcessInput

Function ProcessInput

Source/diablo.cpp:128–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126extern void plrctrls_after_check_curs_move();
127
128static bool ProcessInput()
129{
130 if (PauseMode == 2) {
131 return false;
132 }
133 if (gbMaxPlayers == 1 && gmenu_is_active()) {
134 force_redraw |= 1;
135 return false;
136 }
137
138 if (!gmenu_is_active() && sgnTimeoutCurs == 0) {
139#ifndef USE_SDL1
140 finish_simulated_mouse_clicks(MouseX, MouseY);
141#endif
142 CheckCursMove();
143 plrctrls_after_check_curs_move();
144 track_process();
145 }
146
147 return true;
148}
149
150void run_game_loop(unsigned int uMsg)
151{

Callers 2

run_game_loopFunction · 0.85
game_logicFunction · 0.85

Calls 5

gmenu_is_activeFunction · 0.85
CheckCursMoveFunction · 0.85
track_processFunction · 0.85

Tested by

no test coverage detected