mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-05 04:05:27 +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:
@@ -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