summaryrefslogtreecommitdiffstats
path: root/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-02-04 17:59:14 +0100
committergerman77 <juangerman-13@hotmail.com>2023-02-04 18:05:57 +0100
commitebca59b8e9f7304e8880c3db64c383d9ddc4a7b8 (patch)
treecb0535ad548f9ac2a4b612d4e8aa9ec7772bdb84 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
parentyuzu_cmd: Fix touch input (diff)
downloadyuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.gz
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.bz2
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.lz
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.xz
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.zst
yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.zip
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
-rw-r--r--src/yuzu_cmd/emu_window/emu_window_sdl2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
index e2dfe3a9b..5450b8c38 100644
--- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
+++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
@@ -18,11 +18,11 @@
EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Core::System& system_)
: input_subsystem{input_subsystem_}, system{system_} {
- if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
+ input_subsystem->Initialize();
+ if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0) {
LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting...");
exit(1);
}
- input_subsystem->Initialize();
SDL_SetMainReady();
}