| 662 | #if _ENABLE_CHEATS |
| 663 | bool 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 | |
| 674 | bool InputSubsystem::GetCheat2ToDo(SDL_Scancode sc, bool reset) |
| 675 | { |
| 676 | int dik = static_cast<int>(sc); |
no outgoing calls
no test coverage detected