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

Method ProcessCheats

engine/Poseidon/UI/Map/UIMapMain.cpp:2039–2061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2037}
2038
2039void CStaticMapMain::ProcessCheats()
2040{
2041#if _ENABLE_CHEATS
2042 auto& input = InputSubsystem::Instance();
2043 if (input.GetCheat1ToDo(SDL_SCANCODE_A))
2044 {
2045 _showUnits = !_showUnits;
2046 }
2047 if (input.GetCheat2ToDo(SDL_SCANCODE_A))
2048 {
2049 _showSensors = !_showSensors;
2050 }
2051 if (input.GetCheat1ToDo(SDL_SCANCODE_D))
2052 {
2053 _showTargets = !_showTargets;
2054 }
2055 if (input.GetCheat2ToDo(SDL_SCANCODE_V))
2056 {
2057 _showVariables = !_showVariables;
2058 }
2059#endif
2060 CStaticMap::ProcessCheats();
2061}
2062
2063void CStaticMapMain::OnLButtonDown(float x, float y)
2064{

Callers

nothing calls this directly

Calls 2

GetCheat1ToDoMethod · 0.80
GetCheat2ToDoMethod · 0.80

Tested by

no test coverage detected