diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-27 21:16:47 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-27 22:11:17 +0200 |
commit | 9e1b0af25907f7a8b960aa5c1e7d931691f40196 (patch) | |
tree | 9bfda0b559cb025da3bc65168d28ee78144daa20 /src/yuzu_tester | |
parent | Merge pull request #4530 from Morph1984/mjolnir-p1 (diff) | |
download | yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.gz yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.bz2 yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.lz yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.xz yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.tar.zst yuzu-9e1b0af25907f7a8b960aa5c1e7d931691f40196.zip |
Diffstat (limited to 'src/yuzu_tester')
-rw-r--r-- | src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp | 5 | ||||
-rw-r--r-- | src/yuzu_tester/emu_window/emu_window_sdl2_hide.h | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp index 8584f6671..78f75fb38 100644 --- a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp +++ b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp @@ -13,7 +13,6 @@ #include <glad/glad.h> -#include "common/assert.h" #include "common/logging/log.h" #include "common/scm_rev.h" #include "core/settings.h" @@ -53,7 +52,7 @@ EmuWindow_SDL2_Hide::EmuWindow_SDL2_Hide() { exit(1); } - InputCommon::Init(); + input_subsystem->Initialize(); SDL_SetMainReady(); @@ -105,7 +104,7 @@ EmuWindow_SDL2_Hide::EmuWindow_SDL2_Hide() { } EmuWindow_SDL2_Hide::~EmuWindow_SDL2_Hide() { - InputCommon::Shutdown(); + input_subsystem->Shutdown(); SDL_GL_DeleteContext(gl_context); SDL_Quit(); } diff --git a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h index c13a82df2..a553b4b95 100644 --- a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h +++ b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.h @@ -8,6 +8,10 @@ struct SDL_Window; +namespace InputCommon { +class InputSubsystem; +} + class EmuWindow_SDL2_Hide : public Core::Frontend::EmuWindow { public: explicit EmuWindow_SDL2_Hide(); @@ -25,6 +29,8 @@ private: /// Whether the GPU and driver supports the OpenGL extension required bool SupportsRequiredGLExtensions(); + std::unique_ptr<InputCommon::InputSubsystem> input_subsystem; + /// Internal SDL2 render window SDL_Window* render_window; |