19 lines
618 B
C#
19 lines
618 B
C#
using System.Collections.Generic;
|
|
|
|
namespace BizHawk.Client.ApiHawk
|
|
{
|
|
public interface IJoypad : IExternalApi
|
|
{
|
|
Dictionary<string, dynamic> Get(int? controller = null);
|
|
|
|
// TODO: what about float controls?
|
|
Dictionary<string, dynamic> GetImmediate();
|
|
void SetFromMnemonicStr(string inputLogEntry);
|
|
void Set(Dictionary<string, bool> buttons, int? controller = null);
|
|
void Set(string button, bool? state = null, int? controller = null);
|
|
void SetAnalog(Dictionary<string, float> controls, object controller = null);
|
|
void SetAnalog(string control, float? value = null, object controller = null);
|
|
|
|
}
|
|
}
|