Fix new Joystick interface.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
e04d5cac04
commit
a3061f55d6
3 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue