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

17 lines
287 B
C#
Raw Normal View History

2024-07-24 15:03:33 +08:00
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));
}
}
}