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>
|
2017-04-26 14:10:00 +00:00
|
|
|
|
/// Gets a definition of the controller schema, including all currently available buttons and their types
|
2016-12-12 18:30:32 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
ControllerDefinition Definition { get; }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2016-12-14 20:12:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the current state of a boolean control
|
|
|
|
|
/// </summary>
|
2011-08-08 23:35:13 +00:00
|
|
|
|
bool IsPressed(string button);
|
|
|
|
|
|
2016-12-14 20:12:16 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns the state of a float control
|
|
|
|
|
/// </summary>
|
2011-08-08 23:35:13 +00:00
|
|
|
|
float GetFloat(string name);
|
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
}
|