Add some checks to try to prevent empty MultiInputMapping from arising, assert->log

This commit is contained in:
Henrik Rydgård committed 2023-05-05 22:26:44 +02:00
1 parent 3318088a28
commit eec1ad5a75
2 files changed
+19 -4

No files matched your search

+5
View File
@@ -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);