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