2011-01-11 02:55:51 +00:00
|
|
|
|
namespace BizHawk
|
|
|
|
|
{
|
|
|
|
|
public class NullController : IController
|
|
|
|
|
{
|
|
|
|
|
public ControllerDefinition Type { get { return null; } }
|
2011-01-14 03:38:26 +00:00
|
|
|
|
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; }
|
2011-02-05 05:40:19 +00:00
|
|
|
|
public void UpdateControls(int frame) { }
|
2011-01-14 03:38:26 +00:00
|
|
|
|
public void UnpressButton(string button) { }
|
|
|
|
|
public void ForceButton(string button) { }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2011-01-14 03:38:26 +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; }
|
|
|
|
|
}
|
|
|
|
|
}
|