| 614 | |
| 615 | bool InputSubsystem::IsKeyDown(SDL_Scancode sc) const |
| 616 | { |
| 617 | int idx = static_cast<int>(sc); |
| 618 | if (idx < 0 || idx >= SDL_SCANCODE_COUNT) |
| 619 | return false; |
| 620 | return GInput.keyboard.keys[idx] > 0.0f; |
| 621 | } |
| 622 | |
| 623 | bool InputSubsystem::IsKeyPressed(SDL_Scancode sc) const |
| 624 | { |
| 625 | int idx = static_cast<int>(sc); |
no outgoing calls
no test coverage detected