summaryrefslogtreecommitdiffstats
path: root/src/input_common/drivers/sdl_driver.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 15:05:23 +0100
committerLioncash <mathew1800@gmail.com>2021-12-13 15:05:50 +0100
commit2b92d22bda767c7c723935c357bea474f8e2d2f8 (patch)
treee732bb3b2062562c031ea54937514ca34ab6e6b1 /src/input_common/drivers/sdl_driver.h
parentinput_engine: Remove callback clearing in constructor (diff)
downloadyuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.gz
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.bz2
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.lz
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.xz
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.tar.zst
yuzu-2b92d22bda767c7c723935c357bea474f8e2d2f8.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/drivers/sdl_driver.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input_common/drivers/sdl_driver.h b/src/input_common/drivers/sdl_driver.h
index d03ff4b84..c6fffe374 100644
--- a/src/input_common/drivers/sdl_driver.h
+++ b/src/input_common/drivers/sdl_driver.h
@@ -19,19 +19,19 @@ using SDL_GameController = struct _SDL_GameController;
using SDL_Joystick = struct _SDL_Joystick;
using SDL_JoystickID = s32;
+namespace InputCommon {
+
+class SDLJoystick;
+
using ButtonBindings =
std::array<std::pair<Settings::NativeButton::Values, SDL_GameControllerButton>, 17>;
using ZButtonBindings =
std::array<std::pair<Settings::NativeButton::Values, SDL_GameControllerAxis>, 2>;
-namespace InputCommon {
-
-class SDLJoystick;
-
-class SDLDriver : public InputCommon::InputEngine {
+class SDLDriver : public InputEngine {
public:
/// Initializes and registers SDL device factories
- SDLDriver(const std::string& input_engine_);
+ explicit SDLDriver(std::string input_engine_);
/// Unregisters SDL device factories and shut them down.
~SDLDriver() override;