AxibugEmuOnline/OtherCore/MyNes.Standard2/MyNes.Core/IZapperConnecter.cs

17 lines
287 B
C#

namespace MyNes.Core
{
public abstract class IZapperConnecter
{
protected bool Trigger;
protected bool State;
public abstract void Update();
public virtual byte GetData()
{
return (byte)((Trigger ? 16u : 0u) | (State ? 8u : 0u));
}
}
}