Release all keys and axes on game controller disconnect on Android

This commit is contained in:
Henrik Rydgård committed 2026-01-26 11:08:55 +01:00
1 parent 41bb9a04b3
commit 25d216a20a
2 files changed
+22 -6

No files matched your search

+2 -2
View File
@@ -847,8 +847,8 @@ void NotifyPadConnected(InputDeviceID deviceId, std::string_view name) {
g_seenPads.insert(std::string(name));
g_padNames[deviceId] = name;
// Don't notify within the first 8 seconds, to avoid notification spam on startup.
if (time_now_d() >= 8.0) {
// Don't notify within the first 5 seconds, to avoid notification spam on startup.
if (time_now_d() >= 5.0) {
auto co = GetI18NCategory(I18NCat::CONTROLS);
g_OSD.Show(OSDType::MESSAGE_SUCCESS, ApplySafeSubstitutions("%1: %2", co->T("Game controller connected"), name), "", "I_CONTROLLER", 2.0f, "controller_connected");
}