MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / QueryMouseButtonToDo

Function QueryMouseButtonToDo

engine/Poseidon/Input/InputSubsystem.cpp:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static bool QueryMouseButtonToDo(Input& in, int index, bool reset, bool checkFocus)
164{
165 if (checkFocus && in.gameFocusLost > 0)
166 return false;
167 if (index < 0 || index >= N_MOUSE_BUTTONS)
168 return false;
169 bool ret = in.mouse.buttonsToDo[index];
170 if (reset)
171 in.mouse.buttonsToDo[index] = false;
172 return ret;
173}
174
175static bool QueryDoubleTapMouseButtonToDo(Input& in, int index, bool reset, bool checkFocus)
176{

Callers 2

QueryActionToDoFunction · 0.85
QueryProfileCodeToDoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected