mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
If it's a TV and VIRTKEY_PAUSE is not mapped to a pad control, pause on app switch.
This commit is contained in:
1 parent
81b4c3b376
commit
aa3daca293
3 files changed
+20
-3
No files matched your search
@@ -905,6 +905,17 @@ void RemoveButtonMapping(int btn) {
|
||||
}
|
||||
}
|
||||
|
||||
bool IsKeyMapped(int device, int key) {
|
||||
for (auto &iter : g_controllerMap) {
|
||||
for (auto &mappedKey : iter.second) {
|
||||
if (mappedKey == KeyDef(device, key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void SetKeyMapping(int btn, KeyDef key, bool replace) {
|
||||
if (key.keyCode < 0)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user