24 lines
571 B
C#
24 lines
571 B
C#
![]() |
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; }
|
|||
|
}
|
|||
|
}
|