diff options
author | FearlessTobi <thm.frey@gmail.com> | 2020-05-02 21:47:17 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-05-02 21:47:17 +0200 |
commit | 3d1e741645b4b615b626bfc66f751c229ef44bab (patch) | |
tree | d421a4e8010f616b36d39783f26ee769d9d018a1 /src/input_common | |
parent | Merge pull request #3811 from ogniK5377/audin-init (diff) | |
download | yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar.gz yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar.bz2 yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar.lz yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar.xz yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.tar.zst yuzu-3d1e741645b4b615b626bfc66f751c229ef44bab.zip |
Diffstat (limited to 'src/input_common')
-rw-r--r-- | src/input_common/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index c98c848cf..95e351e24 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -18,7 +18,9 @@ namespace InputCommon { static std::shared_ptr<Keyboard> keyboard; static std::shared_ptr<MotionEmu> motion_emu; +#ifdef HAVE_SDL2 static std::unique_ptr<SDL::State> sdl; +#endif static std::unique_ptr<CemuhookUDP::State> udp; void Init() { @@ -29,7 +31,9 @@ void Init() { motion_emu = std::make_shared<MotionEmu>(); Input::RegisterFactory<Input::MotionDevice>("motion_emu", motion_emu); +#ifdef HAVE_SDL2 sdl = SDL::Init(); +#endif udp = CemuhookUDP::Init(); } @@ -40,7 +44,9 @@ void Shutdown() { Input::UnregisterFactory<Input::AnalogDevice>("analog_from_button"); Input::UnregisterFactory<Input::MotionDevice>("motion_emu"); motion_emu.reset(); +#ifdef HAVE_SDL2 sdl.reset(); +#endif udp.reset(); } |