| 638 | |
| 639 | bool InputSubsystem::ConsumeKeyPress(SDL_Scancode sc) |
| 640 | { |
| 641 | int idx = static_cast<int>(sc); |
| 642 | if (idx < 0 || idx >= SDL_SCANCODE_COUNT) |
| 643 | return false; |
| 644 | bool pressed = GInput.keyboard.keysToDo[idx]; |
| 645 | GInput.keyboard.keysToDo[idx] = false; |
| 646 | return pressed; |
| 647 | } |
| 648 | |
| 649 | bool InputSubsystem::ConsumeDevKeyPress(SDL_Scancode sc) |
| 650 | { |
| 651 | // Always consume the edge — even when dev mode is off — so the press |
no outgoing calls
no test coverage detected