2014-11-30 23:05:00 +00:00
|
|
|
|
namespace BizHawk.Emulation.Common
|
2011-01-11 02:55:51 +00:00
|
|
|
|
{
|
2014-11-30 23:05:00 +00:00
|
|
|
|
|
2011-08-08 23:35:13 +00:00
|
|
|
|
public interface IController
|
|
|
|
|
{
|
|
|
|
|
ControllerDefinition Type { get; }
|
2011-01-11 02:55:51 +00:00
|
|
|
|
|
2013-12-07 00:53:06 +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; }
|
2013-12-07 00:53:06 +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-11 02:55:51 +00:00
|
|
|
|
}
|