BizHawk/BizHawk.Emulation.Common/Interfaces/IController.cs

21 lines
510 B
C#
Raw Normal View History

namespace BizHawk.Emulation.Common
2011-01-11 02:55:51 +00:00
{
public interface IController
{
/// <summary>
/// Gets a definition of the controller schema, including all currently available buttons and their types
/// </summary>
ControllerDefinition Definition { get; }
2011-01-11 02:55:51 +00:00
/// <summary>
/// Returns the current state of a boolean control
/// </summary>
bool IsPressed(string button);
/// <summary>
/// Returns the state of a float control
/// </summary>
float GetFloat(string name);
}
2011-01-11 02:55:51 +00:00
}