diff options
author | german77 <juangerman-13@hotmail.com> | 2023-02-04 10:59:14 -0600 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-02-04 11:05:57 -0600 |
commit | ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8 (patch) | |
tree | cb0535ad548f9ac2a4b612d4e8aa9ec7772bdb84 /src/yuzu_cmd/emu_window | |
parent | 424643f9af91ff704f1bebfd9150f8ff153bdda5 (diff) |
yuzu_cmd: Fix mismatching controller input
Diffstat (limited to 'src/yuzu_cmd/emu_window')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 4 |
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(); } |