diff options
author | german77 <juangerman-13@hotmail.com> | 2021-06-19 21:38:49 +0200 |
---|---|---|
committer | MonsterDruide1 <5958456@gmail.com> | 2021-09-18 23:22:30 +0200 |
commit | c01a872c8efa90065b6ba1a74079ddf6ec12058f (patch) | |
tree | d441117b0d133bff32b39f5060b31db57bc0413f /src/input_common/main.cpp | |
parent | core: Hacky TAS syncing & load pausing (diff) | |
download | yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar.gz yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar.bz2 yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar.lz yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar.xz yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.tar.zst yuzu-c01a872c8efa90065b6ba1a74079ddf6ec12058f.zip |
Diffstat (limited to 'src/input_common/main.cpp')
-rw-r--r-- | src/input_common/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp index 4f170493e..3b9906b53 100644 --- a/src/input_common/main.cpp +++ b/src/input_common/main.cpp @@ -5,6 +5,7 @@ #include <memory> #include <thread> #include "common/param_package.h" +#include "common/settings.h" #include "input_common/analog_from_button.h" #include "input_common/gcadapter/gc_adapter.h" #include "input_common/gcadapter/gc_poller.h" @@ -114,8 +115,11 @@ struct InputSubsystem::Impl { std::vector<Common::ParamPackage> devices = { Common::ParamPackage{{"display", "Any"}, {"class", "any"}}, Common::ParamPackage{{"display", "Keyboard/Mouse"}, {"class", "keyboard"}}, - Common::ParamPackage{{"display", "TAS"}, {"class", "tas"}}, }; + if (Settings::values.tas_enable) { + devices.push_back( + Common::ParamPackage{{"display", "TAS Controller"}, {"class", "tas"}}); + } #ifdef HAVE_SDL2 auto sdl_devices = sdl->GetInputDevices(); devices.insert(devices.end(), sdl_devices.begin(), sdl_devices.end()); |