Skip to content

Commit

Permalink
fullscreen with f11 instead of f9 (#305)
Browse files Browse the repository at this point in the history
Co-authored-by: briaguya <briaguya@alice>
  • Loading branch information
briaguya-ai and briaguya authored Jun 6, 2023
1 parent f081dac commit a4dc7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void Context::CreateDefaultSettings() {
GetConfig()->SetString("Game.Main Archive", "");
GetConfig()->SetString("Game.Patches Archive", "");

GetConfig()->SetInt("Shortcuts.Fullscreen", KbScancode::LUS_KB_F9);
GetConfig()->SetInt("Shortcuts.Fullscreen", KbScancode::LUS_KB_F11);
GetConfig()->SetInt("Shortcuts.Console", KbScancode::LUS_KB_OEM_3);

GetConfig()->Save();
Expand Down
2 changes: 1 addition & 1 deletion src/window/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void Window::MainLoop(void (*mainFunction)(void)) {
}

bool Window::KeyUp(int32_t scancode) {
if (scancode == Context::GetInstance()->GetConfig()->GetInt("Shortcuts.Fullscreen", KbScancode::LUS_KB_F9)) {
if (scancode == Context::GetInstance()->GetConfig()->GetInt("Shortcuts.Fullscreen", KbScancode::LUS_KB_F11)) {
Context::GetInstance()->GetWindow()->ToggleFullscreen();
}

Expand Down

0 comments on commit a4dc7bf

Please sign in to comment.