aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/applets/controller.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-12-21 10:46:19 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-01-01 06:39:24 -0500
commitdd73d7eb8e4bf7944820197a98de5ef7f51a39c8 (patch)
tree0c525192706039bd757264fdf0cf8b87d322ee7a /src/yuzu/applets/controller.cpp
parent1c53456c3c0a7d970feac2ef90f6ac481edb0e57 (diff)
configure_input: Modify controller connection delay
Increases the controller connection delay to 60ms and refactors it to attempt to disconnect all controllers prior to connecting all controllers in HID.
Diffstat (limited to 'src/yuzu/applets/controller.cpp')
-rw-r--r--src/yuzu/applets/controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/applets/controller.cpp b/src/yuzu/applets/controller.cpp
index a15e8ca2a3..c680fd2c21 100644
--- a/src/yuzu/applets/controller.cpp
+++ b/src/yuzu/applets/controller.cpp
@@ -535,7 +535,7 @@ void QtControllerSelectorDialog::UpdateControllerState(std::size_t player_index)
// 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(20ms);
+ std::this_thread::sleep_for(60ms);
UpdateController(controller_type, player_index, player_connected);
}