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

Function QueryDoubleTapKey

engine/Poseidon/Input/InputSubsystem.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static float QueryDoubleTapKey(const Input& in, int dik, bool checkFocus)
95{
96 if (checkFocus && in.gameFocusLost > 0)
97 return 0;
98#if _ENABLE_CHEATS
99 if (in.keyboard.cheat1 || in.keyboard.cheat2)
100 return 0;
101#endif
102 if (in.keyboard.awaitCheat)
103 return 0;
104 if (dik < 0 || dik >= SDL_SCANCODE_COUNT)
105 return 0;
106 return in.keyboard.keysDoubleTapActive[dik] ? in.keyboard.keys[dik] : 0.0f;
107}
108
109static bool QueryKeyToDo(Input& in, int dik, bool reset, bool checkFocus)
110{

Callers 3

QueryActionFunction · 0.85
QueryProfileCodeFunction · 0.85
GetKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected