| 622 | |
| 623 | bool InputSubsystem::IsKeyPressed(SDL_Scancode sc) const |
| 624 | { |
| 625 | int idx = static_cast<int>(sc); |
| 626 | if (idx < 0 || idx >= SDL_SCANCODE_COUNT) |
| 627 | return false; |
| 628 | return GInput.keyboard.keysToDo[idx]; |
| 629 | } |
| 630 | |
| 631 | float InputSubsystem::GetKeyValue(SDL_Scancode sc) const |
| 632 | { |
| 633 | int idx = static_cast<int>(sc); |
no outgoing calls
no test coverage detected