1
0
mirror of https://github.com/MickGyver/DaemonBite-Retro-Controllers-USB synced 2025-02-15 14:50:25 -05:00

Fixed NES Controller detection

This commit is contained in:
8bit-duck 2021-08-30 18:26:59 +01:00
parent 362c9d136d
commit a0212e3f15

View File

@ -193,7 +193,7 @@ void detectControllerTypes()
// Check controller types and set buttonCount to max needed // Check controller types and set buttonCount to max needed
for(gp=0; gp<GAMEPAD_COUNT; gp++) for(gp=0; gp<GAMEPAD_COUNT; gp++)
{ {
if((buttons[gp][0] & 0xF3A) == 0xF3A) { // NES if((buttons[gp][0] & 0x3A) == 0x3A) { // NES
if(controllerType[gp] != SNES) if(controllerType[gp] != SNES)
controllerType[gp] = NES; controllerType[gp] = NES;
if(buttonCountNew < 8) if(buttonCountNew < 8)