mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
Release all keys and axes on game controller disconnect on Android
This commit is contained in:
1 parent
41bb9a04b3
commit
25d216a20a
2 files changed
+22
-6
No files matched your search
+2
-2
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user