BizHawk/BizHawk.Emulation/Interfaces/IController.cs

24 lines
571 B
C#
Raw Normal View History

2011-01-11 02:55:51 +00:00
using System.Collections.Generic;
namespace BizHawk
{
public class ControllerDefinition
{
public string Name;
public List<string> BoolButtons = new List<string>();
public List<string> FloatControls = new List<string>();
}
public interface IController
{
ControllerDefinition Type { get; }
bool this[string name] { get; }
bool IsPressed(string name);
float GetFloat(string name);
void UnpressButton(string name);
int FrameNumber { get; set; }
}
}