summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-06-25 00:16:27 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-06-25 00:23:48 -0500
commit609d91156a4c538071f0743793a519c5125300ff (patch)
treea40aac4db4aa9a78704c709d5703fa0b7684bc23 /Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
parent43aa7e9b9658d3c1508512b6b0caef7737ed6683 (diff)
InputCommon: Rename SDL input backend GameController to Gamepad.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp8
1 files changed, 4 insertions, 4 deletions
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<GameController>(gc, js);
- if (!gamecontroller->Inputs().empty() || !gamecontroller->Outputs().empty())
- GetControllerInterface().AddDevice(std::move(gamecontroller));
+ auto gamepad = std::make_shared<Gamepad>(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<const GameController*>(device)->GetSDLInstanceID() == e.jdevice.which;
+ static_cast<const Gamepad*>(device)->GetSDLInstanceID() == e.jdevice.which;
});
}
else if (e.type == m_populate_event_type)