From ddb82a5e8ca84df1b95942c8b3a1fa6c9071010b Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Mon, 20 Jan 2025 23:19:56 -0600 Subject: InputCommon/ControllerEmu: Break out functionality of EmulatedController to eliminate redundant unused members in Wii Remote extension objects. --- Source/Core/DolphinQt/TAS/TASInputWindow.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Source/Core/DolphinQt/TAS/TASInputWindow.cpp') diff --git a/Source/Core/DolphinQt/TAS/TASInputWindow.cpp b/Source/Core/DolphinQt/TAS/TASInputWindow.cpp index d3dc078375..8075c6af58 100644 --- a/Source/Core/DolphinQt/TAS/TASInputWindow.cpp +++ b/Source/Core/DolphinQt/TAS/TASInputWindow.cpp @@ -17,11 +17,8 @@ #include #include -#include "Common/CommonTypes.h" - #include "DolphinQt/Host.h" #include "DolphinQt/QtUtils/AspectRatioWidget.h" -#include "DolphinQt/QtUtils/QueueOnObject.h" #include "DolphinQt/Resources.h" #include "DolphinQt/TAS/StickWidget.h" #include "DolphinQt/TAS/TASCheckBox.h" @@ -250,14 +247,12 @@ std::optional TASInputWindow::GetButton(TASCheckBox* checkbox, std::optional TASInputWindow::GetSpinBox(TASSpinBox* spin, int zero, int min, int max, ControlState controller_state) { - const int controller_value = - ControllerEmu::EmulatedController::MapFloat(controller_state, zero, 0, max); + const int controller_value = ControllerEmu::MapFloat(controller_state, zero, 0, max); if (m_use_controller->isChecked()) spin->OnControllerValueChanged(controller_value); - return ControllerEmu::EmulatedController::MapToFloat(spin->GetValue(), zero, - min, max); + return ControllerEmu::MapToFloat(spin->GetValue(), zero, min, max); } std::optional TASInputWindow::GetSpinBox(TASSpinBox* spin, int zero, -- cgit v1.2.3