mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Games: Add fullscreen option
This commit is contained in:
parent
13c66ebf12
commit
64edf6913f
13 changed files with 66 additions and 0 deletions
|
@ -82,10 +82,14 @@ void Game::paint_event(GUI::PaintEvent& event)
|
|||
|
||||
void Game::keydown_event(GUI::KeyEvent& event)
|
||||
{
|
||||
// FIXME: After #22573 is merged, then remove the case for F11 below and ensure it is in this check here which also checks for modifiers
|
||||
switch (event.key()) {
|
||||
case Key_Escape:
|
||||
GUI::Application::the()->quit();
|
||||
break;
|
||||
case Key_F11:
|
||||
event.ignore();
|
||||
break;
|
||||
default:
|
||||
player_input();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue