AxibugEmuOnline/AxibugEmuOnline.Client/Assets/MyNes.Core/IZapperConnecter.cs
2024-07-03 18:22:22 +08:00

17 lines
303 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));
}
}
}