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

21 lines
510 B
C#

namespace BizHawk.Emulation.Common
{
public interface IController
{
/// <summary>
/// Gets a definition of the controller schema, including all currently available buttons and their types
/// </summary>
ControllerDefinition Definition { get; }
/// <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);
}
}