Exemplo n.º 1
0
 /**
  * @brief Returns true if the current controller supports the certain feature.
  */
 public static bool GetControllerAvailableFeature(ControllerAvailableFeature feature)
 {
     if (GetAvailableControllersCount() == 0)
     {
         return(false);
     }
     return(GetControllerState(m_DomainHand).IsFeatureAvailable(feature));
 }
Exemplo n.º 2
0
 public void Reset()
 {
     controllerType   = ControllerType.CONTROLLER_TYPE_UNKNOWN;
     connectionState  = ControllerConnectionState.CONTROLLER_CONNECTION_STATE_NOT_INITIALIZED;
     rotation         = Quaternion.identity;
     position         = Vector3.zero;
     gyro             = Vector3.zero;
     accel            = Vector3.zero;
     mag              = Vector3.zero;
     touchPos         = Vector2.zero;
     isTouching       = false;
     recentered       = false;
     buttonsState     = 0;
     buttonsDown      = 0;
     buttonsUp        = 0;
     isCharging       = false;
     batteryLevel     = 0;
     availableFeature = 0;
 }
Exemplo n.º 3
0
 public bool IsFeatureAvailable(ControllerAvailableFeature feature)
 {
     return((availableFeature & feature) != 0);
 }