SDL version was missing input cases for SI_SNES, SI_MOUSE, and new SI_SNES_MOUSE
This commit is contained in:
parent
10abe43c0c
commit
ce4221c425
|
@ -1278,6 +1278,7 @@ void FCEUD_UpdateInput ()
|
|||
switch (CurInputType[x])
|
||||
{
|
||||
case SI_GAMEPAD:
|
||||
case SI_SNES:
|
||||
t |= 1;
|
||||
break;
|
||||
case SI_ARKANOID:
|
||||
|
@ -1290,6 +1291,10 @@ void FCEUD_UpdateInput ()
|
|||
case SI_POWERPADB:
|
||||
powerpadbuf[x] = UpdatePPadData (x);
|
||||
break;
|
||||
case SI_MOUSE:
|
||||
case SI_SNES_MOUSE:
|
||||
t |= 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1386,6 +1391,7 @@ void InitInputInterface ()
|
|||
InputDPtr = &powerpadbuf[x];
|
||||
break;
|
||||
case SI_GAMEPAD:
|
||||
case SI_SNES:
|
||||
InputDPtr = &JSreturn;
|
||||
break;
|
||||
case SI_ARKANOID:
|
||||
|
@ -1397,6 +1403,11 @@ void InitInputInterface ()
|
|||
t |= 1;
|
||||
attrib = 1;
|
||||
break;
|
||||
case SI_MOUSE:
|
||||
case SI_SNES_MOUSE:
|
||||
InputDPtr = MouseData;
|
||||
t |= 1;
|
||||
break;
|
||||
}
|
||||
FCEUI_SetInput (x, (ESI) CurInputType[x], InputDPtr, attrib);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue