Skip to content

Commit 09f9d6c

Browse files
committed
remove input viewer
1 parent 36f114c commit 09f9d6c

File tree

5 files changed

+0
-125
lines changed

5 files changed

+0
-125
lines changed

src/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,6 @@ set(Source_Files__Window__Gui
235235
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/Gui.cpp
236236
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/InputEditorWindow.h
237237
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/InputEditorWindow.cpp
238-
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/InputViewer.h
239-
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/InputViewer.cpp
240238
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/GameOverlay.cpp
241239
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/GameOverlay.h
242240
${CMAKE_CURRENT_SOURCE_DIR}/window/gui/Fonts.h

src/window/gui/Gui.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ namespace LUS {
6868

6969
Gui::Gui(std::shared_ptr<GuiWindow> customInputEditorWindow) : mNeedsConsoleVariableSave(false) {
7070
mGameOverlay = std::make_shared<GameOverlay>();
71-
mInputViewer = std::make_shared<InputViewer>();
7271

7372
AddGuiWindow(std::make_shared<StatsWindow>("gStatsEnabled", "Stats"));
7473
if (customInputEditorWindow == nullptr) {
@@ -452,7 +451,6 @@ void Gui::DrawMenu() {
452451
}
453452

454453
GetGameOverlay()->Draw();
455-
GetInputViewer()->Draw();
456454
}
457455

458456
void Gui::ImGuiBackendNewFrame() {
@@ -825,10 +823,6 @@ std::shared_ptr<GameOverlay> Gui::GetGameOverlay() {
825823
return mGameOverlay;
826824
}
827825

828-
std::shared_ptr<InputViewer> Gui::GetInputViewer() {
829-
return mInputViewer;
830-
}
831-
832826
void Gui::SetMenuBar(std::shared_ptr<GuiMenuBar> menuBar) {
833827
mMenuBar = menuBar;
834828

src/window/gui/Gui.h

-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "controller/deviceindex/ControllerReorderingWindow.h"
1515
#include "window/gui/IconsFontAwesome4.h"
1616
#include "window/gui/GameOverlay.h"
17-
#include "window/gui/InputViewer.h"
1817
#include "window/gui/StatsWindow.h"
1918
#include "window/gui/GuiWindow.h"
2019
#include "window/gui/GuiMenuBar.h"
@@ -81,7 +80,6 @@ class Gui {
8180
bool SupportsViewports();
8281
std::shared_ptr<GuiWindow> GetGuiWindow(const std::string& name);
8382
std::shared_ptr<GameOverlay> GetGameOverlay();
84-
std::shared_ptr<InputViewer> GetInputViewer();
8583
void SetMenuBar(std::shared_ptr<GuiMenuBar> menuBar);
8684
std::shared_ptr<GuiMenuBar> GetMenuBar();
8785
void LoadTexture(const std::string& name, const std::string& path);
@@ -110,7 +108,6 @@ class Gui {
110108
ImGuiIO* mImGuiIo;
111109
bool mNeedsConsoleVariableSave;
112110
std::shared_ptr<GameOverlay> mGameOverlay;
113-
std::shared_ptr<InputViewer> mInputViewer;
114111
std::shared_ptr<GuiMenuBar> mMenuBar;
115112
std::map<std::string, GuiTexture> mGuiTextures;
116113
std::map<std::string, std::shared_ptr<GuiWindow>> mGuiWindows;

src/window/gui/InputViewer.cpp

-102
This file was deleted.

src/window/gui/InputViewer.h

-12
This file was deleted.

0 commit comments

Comments
 (0)