diff --git a/extern/aurora b/extern/aurora index e88aa6b1b3..18dc51234f 160000 --- a/extern/aurora +++ b/extern/aurora @@ -1 +1 @@ -Subproject commit e88aa6b1b35b302c513270c7b3a8c2caa10d708e +Subproject commit 18dc51234f7b4d5b5b592132630f3fb27d0b71af diff --git a/src/dusk/imgui/ImGuiConsole.cpp b/src/dusk/imgui/ImGuiConsole.cpp index 9358b3695b..dff991483b 100644 --- a/src/dusk/imgui/ImGuiConsole.cpp +++ b/src/dusk/imgui/ImGuiConsole.cpp @@ -356,7 +356,7 @@ namespace dusk { ImGui::End(); } - m_menuGame.windowInputViewer(); + m_menuTools.ShowInputViewer(); m_menuGame.drawSpeedrunTimerOverlay(); if (getSettings().game.liveSplitEnabled) { diff --git a/src/dusk/imgui/ImGuiControllerOverlay.cpp b/src/dusk/imgui/ImGuiControllerOverlay.cpp index dd0a15806c..75637e5e61 100644 --- a/src/dusk/imgui/ImGuiControllerOverlay.cpp +++ b/src/dusk/imgui/ImGuiControllerOverlay.cpp @@ -3,12 +3,11 @@ #include "imgui.h" #include #include "ImGuiConsole.hpp" -#include "ImGuiMenuGame.hpp" #include namespace dusk { - void ImGuiMenuGame::windowInputViewer() { + void ImGuiMenuTools::ShowInputViewer() { if (!m_showInputViewer) { return; } diff --git a/src/dusk/imgui/ImGuiMenuGame.cpp b/src/dusk/imgui/ImGuiMenuGame.cpp index 99685ce5d4..8041621fee 100644 --- a/src/dusk/imgui/ImGuiMenuGame.cpp +++ b/src/dusk/imgui/ImGuiMenuGame.cpp @@ -10,12 +10,7 @@ namespace dusk { ImGuiMenuGame::ImGuiMenuGame() {} - void ImGuiMenuGame::draw() { - if (ImGui::BeginMenu("Settings")) { - ImGui::Checkbox("Show Input Viewer", &m_showInputViewer); - ImGui::EndMenu(); - } - } + void ImGuiMenuGame::draw() {} static std::string GetFormattedTime(OSTime ticks) { OSCalendarTime time; diff --git a/src/dusk/imgui/ImGuiMenuGame.hpp b/src/dusk/imgui/ImGuiMenuGame.hpp index 9faf045ec3..225a505438 100644 --- a/src/dusk/imgui/ImGuiMenuGame.hpp +++ b/src/dusk/imgui/ImGuiMenuGame.hpp @@ -46,28 +46,11 @@ namespace dusk { ImGuiMenuGame(); void draw(); - void windowInputViewer(); void drawSpeedrunTimerOverlay(); static void resetForSpeedrunMode(); private: - struct { - int m_selectedPort = 0; - bool m_isReading = false; - PADButtonMapping* m_pendingButtonMapping = nullptr; - PADAxisMapping* m_pendingAxisMapping = nullptr; - int m_pendingPort = -1; - bool m_isRumbling = false; - } m_controllerConfig; - - bool m_showControllerConfig = false; - - bool m_showInputViewer = false; - bool m_showInputViewerGyro = false; - int m_inputOverlayCorner = 3; - std::string m_controllerName; - bool m_showTimerWindow = false; }; } diff --git a/src/dusk/imgui/ImGuiMenuTools.cpp b/src/dusk/imgui/ImGuiMenuTools.cpp index 0907d0c116..306298c28d 100644 --- a/src/dusk/imgui/ImGuiMenuTools.cpp +++ b/src/dusk/imgui/ImGuiMenuTools.cpp @@ -48,6 +48,8 @@ namespace dusk { ImGui::EndDisabled(); } + ImGui::Separator(); + ImGui::Checkbox("Show Input Viewer", &m_showInputViewer); #if DUSK_CAN_OPEN_DATA_FOLDER ImGui::Separator(); diff --git a/src/dusk/imgui/ImGuiMenuTools.hpp b/src/dusk/imgui/ImGuiMenuTools.hpp index f2c68494f7..6b925b7bf3 100644 --- a/src/dusk/imgui/ImGuiMenuTools.hpp +++ b/src/dusk/imgui/ImGuiMenuTools.hpp @@ -27,6 +27,7 @@ namespace dusk { void ShowAudioDebug(); void ShowSaveEditor(); void ShowStateShare(); + void ShowInputViewer(); private: bool m_showDebugOverlay = false; @@ -66,6 +67,11 @@ namespace dusk { bool m_showStateShare = false; ImGuiStateShare m_stateShare; + + bool m_showInputViewer = false; + bool m_showInputViewerGyro = false; + int m_inputOverlayCorner = 3; + std::string m_controllerName; }; } diff --git a/src/m_Do/m_Do_main.cpp b/src/m_Do/m_Do_main.cpp index 7b01091ef6..61e65928f8 100644 --- a/src/m_Do/m_Do_main.cpp +++ b/src/m_Do/m_Do_main.cpp @@ -708,7 +708,7 @@ int game_main(int argc, char* argv[]) { dComIfG_ct(); // Development Mode - mDoMain::developmentMode = 1; // Force Dev Mode for Debugging + // mDoMain::developmentMode = 1; // Force Dev Mode for Debugging mDoDvdThd::SyncWidthSound = false; OSReport("Starting main01 (Game Loop)...\n");