BizHawk/BizHawk.Emulation/Interfaces/Base Implementations/NullController.cs

19 lines
795 B
C#

namespace BizHawk
{
public class NullController : IController
{
public ControllerDefinition Type { get { return null; } }
public bool this[string button] { get { return false; } }
public bool IsPressed(string button) { return false; }
public float GetFloat(string name) { return 0f; }
public void UpdateControls(int frame) { }
public void UnpressButton(string button) { }
public void ForceButton(string button) { }
public void SetSticky(string button, bool sticky) { }
public bool IsSticky(string button) { return false; }
private static NullController nullController = new NullController();
public static NullController GetNullController() { return nullController; }
}
}