From 3ef0f8c2f119ec3b7fdc02b2ef977b140edb14b6 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 5 Feb 2026 17:51:14 -0800 Subject: [PATCH] Add mouse sensitivity and invert mouse to settings UI Larger settings window (440x520) to fit all sections. --- include/ui/game_screen.hpp | 2 ++ src/ui/game_screen.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ui/game_screen.hpp b/include/ui/game_screen.hpp index a9030238..237cb7a9 100644 --- a/include/ui/game_screen.hpp +++ b/include/ui/game_screen.hpp @@ -63,6 +63,8 @@ private: bool pendingShadows = true; int pendingMusicVolume = 30; int pendingSfxVolume = 100; + float pendingMouseSensitivity = 0.2f; + bool pendingInvertMouse = false; /** * Render player info window diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index e840771d..76b1e7a1 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -1880,7 +1880,7 @@ void GameScreen::renderSettingsWindow() { ImGuiIO& io = ImGui::GetIO(); float screenW = io.DisplaySize.x; float screenH = io.DisplaySize.y; - ImVec2 size(400.0f, 420.0f); + ImVec2 size(440.0f, 520.0f); ImVec2 pos((screenW - size.x) * 0.5f, (screenH - size.y) * 0.5f); ImGui::SetNextWindowPos(pos, ImGuiCond_Always); @@ -1939,6 +1939,7 @@ void GameScreen::renderSettingsWindow() { ImGui::Spacing(); ImGui::Separator(); ImGui::Spacing(); + if (ImGui::Button("Apply", ImVec2(-1, 0))) { window->setVsync(pendingVsync); window->setFullscreen(pendingFullscreen);