2014-11-30 23:05:00 +00:00
|
|
|
|
namespace BizHawk.Emulation.Common
|
2011-01-11 02:55:51 +00:00
|
|
|
|
{
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public interface IController
|
|
|
|
|
{
|
2016-12-12 18:30:32 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the controller schema, including all currently available buttons and their types
|
|
|
|
|
/// </summary>
|
|
|
|
|
ControllerDefinition Definition { get; }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2013-12-07 00:53:06 +00:00
|
|
|
|
// TODO - it is obnoxious for this to be here. must be removed.
|
2011-08-08 23:35:13 +00:00
|
|
|
|
bool this[string button] { get; }
|
2013-12-07 00:53:06 +00:00
|
|
|
|
|
|
|
|
|
// TODO - this can stay but it needs to be changed to go through the float
|
2011-08-08 23:35:13 +00:00
|
|
|
|
bool IsPressed(string button);
|
|
|
|
|
|
|
|
|
|
float GetFloat(string name);
|
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
}
|