hook up the InputCallBackSystem to C64
This commit is contained in:
parent
51f340fa76
commit
def23fbd0f
|
@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
|
||||
private void Init(Region initRegion)
|
||||
{
|
||||
board = new Motherboard(initRegion);
|
||||
board = new Motherboard(this, initRegion);
|
||||
InitRoms();
|
||||
board.Init();
|
||||
InitMedia();
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
public void PollInput()
|
||||
{
|
||||
_c64.CoreComm.InputCallback.Call();
|
||||
// scan joysticks
|
||||
pollIndex = 0;
|
||||
for (int j = 0; j < 5; j++)
|
||||
|
|
|
@ -37,9 +37,12 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
public bool irq;
|
||||
public bool nmi;
|
||||
|
||||
public Motherboard(Region initRegion)
|
||||
private C64 _c64;
|
||||
|
||||
public Motherboard(C64 c64, Region initRegion)
|
||||
{
|
||||
// note: roms need to be added on their own externally
|
||||
_c64 = c64;
|
||||
|
||||
cartPort = new CartridgePort();
|
||||
cassPort = new CassettePort();
|
||||
|
|
Loading…
Reference in New Issue