diff options
| author | 2023-02-04 10:59:14 -0600 | |
|---|---|---|
| committer | 2023-02-04 11:05:57 -0600 | |
| commit | ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8 (patch) | |
| tree | cb0535ad548f9ac2a4b612d4e8aa9ec7772bdb84 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |
| parent | yuzu_cmd: Fix touch input (diff) | |
| download | yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.gz yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.tar.xz yuzu-ebca59b8e9f7304e8880c3db64c383d9ddc4a7b8.zip | |
yuzu_cmd: Fix mismatching controller input
Diffstat (limited to 'src/yuzu_cmd/emu_window/emu_window_sdl2.cpp')
| -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 @@ | |||
| 18 | 18 | ||
| 19 | EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Core::System& system_) | 19 | EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Core::System& system_) |
| 20 | : input_subsystem{input_subsystem_}, system{system_} { | 20 | : input_subsystem{input_subsystem_}, system{system_} { |
| 21 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) { | 21 | input_subsystem->Initialize(); |
| 22 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0) { | ||
| 22 | LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); | 23 | LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); |
| 23 | exit(1); | 24 | exit(1); |
| 24 | } | 25 | } |
| 25 | input_subsystem->Initialize(); | ||
| 26 | SDL_SetMainReady(); | 26 | SDL_SetMainReady(); |
| 27 | } | 27 | } |
| 28 | 28 | ||