///
/// 负责管理本地控制器与具体游戏之间的槽位分配
///
public interface IControllerSetuper
{
///
/// 设置本地手柄与游戏手柄槽位的映射,这个方法是一个全量更新手柄插入设置的方法
///
void SetConnect(
uint? con0ToSlot = null,
uint? con1ToSlot = null,
uint? con2ToSlot = null,
uint? con3ToSlot = null);
///
/// 指定手柄插槽位,获取当前槽位连接的本地手柄序号
///
///
///
int? GetSlotConnectingControllerIndex(int slotIndex);
IController GetSlotConnectingController(int slotIndex);
///
/// 获得一个空的槽位
///
///
uint? GetFreeSlotIndex();
///
/// 增量式的修改一个手柄和一个槽位的连接关系
///
///
///
void LetControllerConnect(int conIndex, uint slotIndex);
}
public interface IController
{
bool AnyButtonDown();
}