public bool checkControllerType(OuyaControllerType againstType) { /* returns true if the controller type equals that of the given one */ if (againstType == controllerType) return true; else return false; }
public void setController(OuyaPlayer player, OuyaControllerType controllerType) { /* allows to reinitialize the ID of an existing controller mapping */ this.controllerType = controllerType; this.player = player; }
public PlayerController(OuyaPlayer player, OuyaControllerType controllerType) { /* constructor */ this.controllerType = controllerType; this.player = player; }