Add shortcut to toggle fullscreen

This commit is contained in:
Tamás Bálint Misius 2023-10-05 23:19:59 +02:00
parent 7bb8344d3b
commit bc51bdf634
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -1459,6 +1459,9 @@ void GameView::OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl,
else
introText = 0;
break;
case SDL_SCANCODE_F11:
ui::Engine::Ref().SetFullscreen(!ui::Engine::Ref().GetFullscreen());
break;
case SDL_SCANCODE_H:
if(ctrl)
{