From 609d91156a4c538071f0743793a519c5125300ff Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Wed, 25 Jun 2025 00:16:27 -0500 Subject: InputCommon: Rename SDL input backend GameController to Gamepad. --- Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp') diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp index dfbd77888c..8e4043f4a9 100644 --- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp @@ -251,9 +251,9 @@ void InputBackend::OpenAndAddDevice(SDL_JoystickID instance_id) // SDL tries parsing these as Joysticks return; } - auto gamecontroller = std::make_shared(gc, js); - if (!gamecontroller->Inputs().empty() || !gamecontroller->Outputs().empty()) - GetControllerInterface().AddDevice(std::move(gamecontroller)); + auto gamepad = std::make_shared(gc, js); + if (!gamepad->Inputs().empty() || !gamepad->Outputs().empty()) + GetControllerInterface().AddDevice(std::move(gamepad)); } } @@ -267,7 +267,7 @@ bool InputBackend::HandleEventAndContinue(const SDL_Event& e) { GetControllerInterface().RemoveDevice([&e](const auto* device) { return device->GetSource() == "SDL" && - static_cast(device)->GetSDLInstanceID() == e.jdevice.which; + static_cast(device)->GetSDLInstanceID() == e.jdevice.which; }); } else if (e.type == m_populate_event_type) -- cgit v1.2.3