Add in inputpollable stuff to Intellivision

Should be TASable now
This commit is contained in:
alyosha-tas 2016-12-19 20:20:10 -05:00 committed by GitHub
parent 9c3e4cd411
commit 138f7b140d
1 changed files with 24 additions and 1 deletions

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Intellivision
isReleased: false
)]
[ServiceNotApplicable(typeof(ISaveRam), typeof(IDriveLight))]
public sealed partial class Intellivision : IEmulator, IStatable, ISettable<Intellivision.IntvSettings, Intellivision.IntvSyncSettings>
public sealed partial class Intellivision : IEmulator, IStatable, IInputPollable, ISettable<Intellivision.IntvSettings, Intellivision.IntvSyncSettings>
{
[CoreConstructor("INTV")]
public Intellivision(CoreComm comm, GameInfo game, byte[] rom, object Settings, object SyncSettings)
@ -71,6 +71,27 @@ namespace BizHawk.Emulation.Cores.Intellivision
private ITraceable Tracer { get; set; }
public int LagCount
{
get {return 0;}
set{}
}
public bool IsLagFrame
{
get {return false;}
set {}
}
public IInputCallbackSystem InputCallbacks
{
get { return _inputCallbacks; }
}
private readonly InputCallbackSystem _inputCallbacks = new InputCallbackSystem();
private byte[] _rom;
private GameInfo _gameInfo;
@ -113,6 +134,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
public void get_controller_state()
{
InputCallbacks.Call();
ushort port1 = ControllerDeck.ReadPort1(Controller);
_psg.Register[15] = (ushort)(0xFF - port1);