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

Function QueryJoystickButton

engine/Poseidon/Input/InputSubsystem.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static float QueryJoystickButton(const Input& in, int index, bool checkFocus)
188{
189 if (checkFocus && in.gameFocusLost > 0)
190 return 0;
191 if (index < 0)
192 return 0;
193 return in.gamepad.stickButtons[index];
194}
195
196static bool QueryJoystickButtonToDo(Input& in, int index, bool reset, bool checkFocus)
197{

Callers 3

QueryActionFunction · 0.85
ProfileModifierHeldFunction · 0.85
QueryProfileCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected