| 630 | |
| 631 | float InputSubsystem::GetKeyValue(SDL_Scancode sc) const |
| 632 | { |
| 633 | int idx = static_cast<int>(sc); |
| 634 | if (idx < 0 || idx >= SDL_SCANCODE_COUNT) |
| 635 | return 0.0f; |
| 636 | return GInput.keyboard.keys[idx]; |
| 637 | } |
| 638 | |
| 639 | bool InputSubsystem::ConsumeKeyPress(SDL_Scancode sc) |
| 640 | { |
| 641 | int idx = static_cast<int>(sc); |
no outgoing calls
no test coverage detected