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

Method GetKey

engine/Poseidon/Input/InputSubsystem.cpp:984–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982
983float InputSubsystem::GetKey(int packedKey, bool checkFocus) const
984{
985 const int value = InputBindingValue(packedKey);
986 return InputBindingIsDoubleTap(packedKey) ? QueryDoubleTapKey(GInput, value, checkFocus)
987 : QueryKey(GInput, value, checkFocus);
988}
989
990bool InputSubsystem::GetKeyToDo(int packedKey, bool reset, bool checkFocus)
991{
992 const int value = InputBindingValue(packedKey);

Callers

nothing calls this directly

Calls 4

InputBindingValueFunction · 0.85
InputBindingIsDoubleTapFunction · 0.85
QueryDoubleTapKeyFunction · 0.85
QueryKeyFunction · 0.85

Tested by

no test coverage detected