예제 #1
0
 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;
 }
예제 #2
0
 public void setController(OuyaPlayer player, OuyaControllerType controllerType)
 {
     /* allows to reinitialize the ID of an existing controller mapping
      */
     this.controllerType = controllerType;
     this.player = player;
 }
예제 #3
0
 public PlayerController(OuyaPlayer player, OuyaControllerType controllerType)
 {
     /* constructor
      */
     this.controllerType = controllerType;
     this.player = player;
 }