ZXHawk: fix lag detection on kemston joystick. Fixes #1993
This commit is contained in:
parent
7b340f8766
commit
59baedbc64
|
@ -47,10 +47,13 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
if (lowByte == 0x1f)
|
||||
{
|
||||
if (LocateUniqueJoystick(JoystickType.Kempston) != null)
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
{
|
||||
InputRead = true;
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
}
|
||||
|
||||
InputRead = true;
|
||||
}
|
||||
InputRead = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (KeyboardDevice.ReadPort(port, ref result))
|
||||
|
|
|
@ -28,10 +28,13 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
if (lowByte == 0x1f)
|
||||
{
|
||||
if (LocateUniqueJoystick(JoystickType.Kempston) != null)
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
{
|
||||
InputRead = true;
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
}
|
||||
|
||||
InputRead = true;
|
||||
}
|
||||
InputRead = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (KeyboardDevice.ReadPort(port, ref result))
|
||||
|
|
|
@ -28,9 +28,12 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
if (lowByte == 0x1f)
|
||||
{
|
||||
if (LocateUniqueJoystick(JoystickType.Kempston) != null)
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
{
|
||||
InputRead = true;
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
}
|
||||
|
||||
InputRead = true;
|
||||
InputRead = true;
|
||||
}
|
||||
else if (UPDDiskDevice.ReadPort(port, ref result))
|
||||
{
|
||||
|
|
|
@ -23,7 +23,10 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
if (lowByte == 0x1f)
|
||||
{
|
||||
if (LocateUniqueJoystick(JoystickType.Kempston) != null)
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
{
|
||||
InputRead = true;
|
||||
return (byte)((KempstonJoystick)LocateUniqueJoystick(JoystickType.Kempston) as KempstonJoystick).JoyLine;
|
||||
}
|
||||
|
||||
// not a lag frame
|
||||
InputRead = true;
|
||||
|
|
Loading…
Reference in New Issue