summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-05-03 07:01:11 +0200
committerGitHub <noreply@github.com>2020-05-03 07:01:11 +0200
commit3309a6cdf148dc524e30ea07e989c7c82e579133 (patch)
treed285549916ef8043760e1bc6b34abe717dd784b6 /src
parentMerge pull request #3871 from lioncash/semi (diff)
parentinput_common: fix build when SDL2 is disabled (diff)
downloadyuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar.gz
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar.bz2
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar.lz
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar.xz
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.tar.zst
yuzu-3309a6cdf148dc524e30ea07e989c7c82e579133.zip
Diffstat (limited to 'src')
-rw-r--r--src/input_common/main.cpp6
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();
}