2013-11-04 01:39:19 +00:00
|
|
|
|
namespace BizHawk.Emulation.Common
|
2011-01-11 02:55:51 +00:00
|
|
|
|
{
|
2011-08-08 23:35:13 +00:00
|
|
|
|
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 UnpressButton(string button) { }
|
|
|
|
|
public void ForceButton(string button) { }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public void SetSticky(string button, bool sticky) { }
|
|
|
|
|
public bool IsSticky(string button) { return false; }
|
2013-11-04 03:12:50 +00:00
|
|
|
|
private static readonly NullController nullController = new NullController();
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public static NullController GetNullController() { return nullController; }
|
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
}
|