2011-01-11 02:55:51 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk
|
|
|
|
|
{
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public class ControllerDefinition
|
|
|
|
|
{
|
|
|
|
|
public string Name;
|
|
|
|
|
public List<string> BoolButtons = new List<string>();
|
|
|
|
|
public List<string> FloatControls = new List<string>();
|
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public interface IController
|
|
|
|
|
{
|
|
|
|
|
ControllerDefinition Type { get; }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2011-06-27 05:31:46 +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; }
|
2011-06-27 05:31:46 +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-14 03:38:26 +00:00
|
|
|
|
|
2011-06-27 05:31:46 +00:00
|
|
|
|
//TODO - why does this have a frame argument. must be removed.
|
2011-08-08 23:35:13 +00:00
|
|
|
|
void UpdateControls(int frame);
|
|
|
|
|
}
|
2011-01-11 02:55:51 +00:00
|
|
|
|
}
|