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
674bool InputSubsystem::GetCheat2ToDo(SDL_Scancode sc, bool reset)
675{
676 int dik = static_cast<int>(sc);
677 if (GInput.keyboard.cheat1 || !GInput.keyboard.cheat2 || dik < 0)
678 return false;
679 bool ret = GInput.keyboard.keysToDo[dik];
680 if (reset)
681 GInput.keyboard.keysToDo[dik] = false;
682 return ret;
683}
684#endif
685
686bool InputSubsystem::IsMouseButtonDown(int button) const
687{

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