libsnescore: eliminate errant querying of "P1 ", et al in controller routine

This commit is contained in:
goyuken 2012-10-08 18:55:25 +00:00
parent c24abbcbad
commit c392b24d22
1 changed files with 1 additions and 0 deletions

View File

@ -485,6 +485,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
case LibsnesDll.SNES_DEVICE_ID.JOYPAD_R: key += "R"; break;
case LibsnesDll.SNES_DEVICE_ID.JOYPAD_SELECT: key += "Select"; break;
case LibsnesDll.SNES_DEVICE_ID.JOYPAD_START: key += "Start"; break;
default: return 0;
}
return (ushort)(Controller[key] ? 1 : 0);