Fix new Joystick interface.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2019-04-19 21:13:00 +01:00
parent e04d5cac04
commit a3061f55d6
3 changed files with 3 additions and 5 deletions

View file

@ -23,7 +23,7 @@ BYTE KeybReadFlag();
BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
BYTE __stdcall JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
BYTE __stdcall JoyResetPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles);
void JoyResetPosition(ULONG uExecutedCycles);
// Speaker

View file

@ -85,10 +85,8 @@ BYTE __stdcall JoyReadPosition(WORD pc, WORD address, BYTE bWrite, BYTE d, ULONG
return MemReadFloatingBus(nPdlCntrActive, uExecutedCycles);
}
BYTE __stdcall JoyResetPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG uExecutedCycles)
void JoyResetPosition(ULONG uExecutedCycles)
{
CpuCalcCycles(uExecutedCycles);
g_nJoyCntrResetCycle = g_nCumulativeCycles;
return MemReadFloatingBus(uExecutedCycles);
}

View file

@ -23,7 +23,7 @@ BYTE KeybReadFlag() { return 0; }
BYTE __stdcall JoyReadButton(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft) { return 0; }
BYTE __stdcall JoyReadPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft) { return 0; }
BYTE __stdcall JoyResetPosition(WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft) { return 0; }
void JoyResetPosition(ULONG nCyclesLeft) { }
// Speaker