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

19 lines
795 B
C#
Raw Normal View History

2011-01-11 02:55:51 +00:00
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; }
2011-01-11 02:55:51 +00:00
public float GetFloat(string name) { return 0f; }
public void UpdateControls(int frame) { }
public void UnpressButton(string button) { }
public void ForceButton(string button) { }
2011-01-11 02:55:51 +00:00
public void SetSticky(string button, bool sticky) { }
public bool IsSticky(string button) { return false; }
2011-01-11 02:55:51 +00:00
private static NullController nullController = new NullController();
public static NullController GetNullController() { return nullController; }
}
}