mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Add some checks to try to prevent empty MultiInputMapping from arising, assert->log
This commit is contained in:
1 parent
3318088a28
commit
eec1ad5a75
2 files changed
+19
-4
No files matched your search
@@ -163,6 +163,11 @@ void SingleControlMapper::Refresh() {
|
||||
}
|
||||
|
||||
void SingleControlMapper::MappedCallback(MultiInputMapping kdf) {
|
||||
if (kdf.empty()) {
|
||||
// Don't want to try to add this.
|
||||
return;
|
||||
}
|
||||
|
||||
switch (action_) {
|
||||
case ADD:
|
||||
KeyMap::SetInputMapping(pspKey_, kdf, false);
|
||||
|
||||
Reference in new issue
Block a user