This commit is contained in:
layland34 2018-11-25 14:54:55 +01:00 committed by GitHub
parent af39f65b03
commit edab819d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace BizHawk.Client.Common
var key = button.Replace("Key ", "");
if (key.StartsWith("P"))
{
if (key.Length > 2 && key[1] == '1' && key[2] >= '0' && key[1] <= '9') // Hack to support 10-20 controllers, TODO: regex this thing instead
if (key.Length > 2 && key[1] == '1' && key[2] >= '0' && key[2] <= '9') // Hack to support 10-20 controllers, TODO: regex this thing instead
{
key = key.Substring(4);
}