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

Method GetCheat2ToDo

engine/Poseidon/Input/InputSubsystem.cpp:675–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673 bool pressed = GInput.keyboard.keysToDo[idx];
674 GInput.keyboard.keysToDo[idx] = false;
675 return pressed && AppConfig::Instance().DevMode();
676}
677
678#if _ENABLE_CHEATS
679bool InputSubsystem::GetCheat1ToDo(SDL_Scancode sc, bool reset)
680{
681 int dik = static_cast<int>(sc);
682 if (!GInput.keyboard.cheat1 || GInput.keyboard.cheat2 || dik < 0)
683 return false;
684 bool ret = GInput.keyboard.keysToDo[dik];
685 if (reset)
686 GInput.keyboard.keysToDo[dik] = false;
687 return ret;

Callers 13

PerformAIMethod · 0.80
SimulateMethod · 0.80
AdjustComplexityMethod · 0.80
BeginObjectsMethod · 0.80
ClearMethod · 0.80
DoTransformPointsMethod · 0.80
OnSimulateMethod · 0.80
ProcessCheatsMethod · 0.80
ProcessCheatsMethod · 0.80
RenderFrameFunction · 0.80
AppIdleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected