Fix gamepad Key_GetCommandAssignmentInternal returning wrong key count when a command is bound to 2 keys

This commit is contained in:
Jan 2021-09-01 16:49:51 +02:00
parent f8dd3f2b3a
commit f364e4db66

View File

@ -1730,7 +1730,7 @@ namespace Components
(*keys)[keyCount++] = keyNum;
if (keyCount >= 2)
return keyNum;
return keyCount;
}
}
}
@ -1746,7 +1746,7 @@ namespace Components
(*keys)[keyCount++] = keyNum;
if (keyCount >= 2)
return keyNum;
return keyCount;
}
}
}