| 617 | } |
| 618 | |
| 619 | void ScriptExtender::OnSDLEvent(SDL_Event* event) |
| 620 | { |
| 621 | if (event->type == SDL_KEYDOWN |
| 622 | && event->key.keysym.scancode == SDL_SCANCODE_F12 |
| 623 | && (unsigned)((SDLKeyModifier)event->key.keysym.mod & (SDLKeyModifier::LCtrl | SDLKeyModifier::RCtrl)) != 0) { |
| 624 | |
| 625 | auto console = gCoreLibPlatformInterface.GlobalConsole; |
| 626 | if (!console->WasCreated()) { |
| 627 | console->Create(); |
| 628 | } |
| 629 | |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | } |
no test coverage detected