diff options
Diffstat (limited to 'src/yuzu_tester')
| -rw-r--r-- | src/yuzu_tester/config.cpp | 2 | ||||
| -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 | ||||
| -rw-r--r-- | src/yuzu_tester/yuzu.cpp | 1 | 
4 files changed, 10 insertions, 4 deletions
diff --git a/src/yuzu_tester/config.cpp b/src/yuzu_tester/config.cpp index 74022af23..bc273fb51 100644 --- a/src/yuzu_tester/config.cpp +++ b/src/yuzu_tester/config.cpp @@ -75,6 +75,8 @@ void Config::ReadValues() {          Settings::values.debug_pad_analogs[i] = "";      } +    Settings::values.vibration_enabled = true; +    Settings::values.motion_enabled = true;      Settings::values.touchscreen.enabled = "";      Settings::values.touchscreen.device = "";      Settings::values.touchscreen.finger = 0; 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; diff --git a/src/yuzu_tester/yuzu.cpp b/src/yuzu_tester/yuzu.cpp index 7acf0caad..5798ce43a 100644 --- a/src/yuzu_tester/yuzu.cpp +++ b/src/yuzu_tester/yuzu.cpp @@ -255,7 +255,6 @@ int main(int argc, char** argv) {                                         "SDLHideTester");      system.GPU().Start(); -    system.Renderer().Rasterizer().LoadDiskResources();      system.Run();      while (!finished) {  | 
