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

Function QueryJoystickButtonToDo

engine/Poseidon/Input/InputSubsystem.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static bool QueryJoystickButtonToDo(Input& in, int index, bool reset, bool checkFocus)
197{
198 if (checkFocus && in.gameFocusLost > 0)
199 return false;
200 if (index < 0)
201 return false;
202 bool ret = in.gamepad.stickButtonsToDo[index];
203 if (reset)
204 in.gamepad.stickButtonsToDo[index] = false;
205 return ret;
206}
207
208// Modifier check: a v1 binding can carry an optional held input in the
209// parallel userKeysModifiers[] array. If set, the modifier must be

Callers 2

QueryActionToDoFunction · 0.85
QueryProfileCodeToDoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected