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

Method GetCheat1ToDo

engine/Poseidon/Input/InputSubsystem.cpp:664–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662#if _ENABLE_CHEATS
663bool InputSubsystem::GetCheat1ToDo(SDL_Scancode sc, bool reset)
664{
665 int dik = static_cast<int>(sc);
666 if (!GInput.keyboard.cheat1 || GInput.keyboard.cheat2 || dik < 0)
667 return false;
668 bool ret = GInput.keyboard.keysToDo[dik];
669 if (reset)
670 GInput.keyboard.keysToDo[dik] = false;
671 return ret;
672}
673
674bool InputSubsystem::GetCheat2ToDo(SDL_Scancode sc, bool reset)
675{
676 int dik = static_cast<int>(sc);

Callers 11

SimulateLandscapeMethod · 0.80
SimulateMethod · 0.80
AdjustComplexityMethod · 0.80
BeginObjectsMethod · 0.80
DrawRectMethod · 0.80
OnSimulateMethod · 0.80
ProcessCheatsMethod · 0.80
ProcessCheatsMethod · 0.80
OnSimulateMethod · 0.80
DrawHUDMethod · 0.80
SimulateHUDMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected