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

Function QueryKey

engine/Poseidon/Input/InputSubsystem.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77} // namespace
78
79static float QueryKey(const Input& in, int dik, bool checkFocus)
80{
81 if (checkFocus && in.gameFocusLost > 0)
82 return 0;
83#if _ENABLE_CHEATS
84 if (in.keyboard.cheat1 || in.keyboard.cheat2)
85 return 0;
86#endif
87 if (in.keyboard.awaitCheat)
88 return 0;
89 if (dik < 0 || dik >= SDL_SCANCODE_COUNT)
90 return 0;
91 return in.keyboard.keys[dik];
92}
93
94static float QueryDoubleTapKey(const Input& in, int dik, bool checkFocus)
95{

Callers 4

QueryActionFunction · 0.85
ProfileModifierHeldFunction · 0.85
QueryProfileCodeFunction · 0.85
GetKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected