diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-29 16:39:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:39:01 -0800 |
commit | 650734cc3e4127d19579adaffa6122a49751851d (patch) | |
tree | c90e295e71c4681ca35cd44edf381ffbf2da0244 /src/yuzu/configuration/configure_input.cpp | |
parent | b786568c5ae056f2d55854959029e72e58d62990 (diff) | |
parent | 3b4da2d7fa341718c1aada140f2f46877af007b7 (diff) |
Merge pull request #5805 from german77/HandheldFix
Fix connect and disconnect controller events
Diffstat (limited to 'src/yuzu/configuration/configure_input.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_input.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 567a36d9b..422022d02 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp @@ -190,12 +190,16 @@ void ConfigureInput::ApplyConfiguration() { // This emulates a delay between disconnecting and reconnecting controllers as some games // do not respond to a change in controller type if it was instantaneous. using namespace std::chrono_literals; - std::this_thread::sleep_for(60ms); + std::this_thread::sleep_for(150ms); for (auto* controller : player_controllers) { controller->TryConnectSelectedController(); } + // This emulates a delay between disconnecting and reconnecting controllers as some games + // do not respond to a change in controller type if it was instantaneous. + std::this_thread::sleep_for(150ms); + advanced->ApplyConfiguration(); const bool pre_docked_mode = Settings::values.use_docked_mode.GetValue(); |