コード例 #1
0
 public static int GetHmdVersion()
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     return(hmdVersion);
 }
コード例 #2
0
 public static int GetElectricity(int deviceIndex)
 {
     if (GetHmdVersion() >= API_1_0_0.apiVersion)
     {
         return(API_1_0_0.GetElectricityByDeviceType(deviceIndex));
     }
     else
     {
         return(0);
     }
 }
コード例 #3
0
 public static Nolo_ControllerStates GetControllerStates(int deviceIndex)
 {
     if (GetHmdVersion() >= API_1_0_0.apiVersion)
     {
         return(API_1_0_0.GetControllerStatesByDeviceTyp(deviceIndex));
     }
     else
     {
         return(new Nolo_ControllerStates());
     }
 }
コード例 #4
0
 public static Nolo_Transform GetPose(int deviceIndex)
 {
     if (GetHmdVersion() >= API_1_0_0.apiVersion)
     {
         return(new Nolo_Transform(API_1_0_0.GetPoseByDeviceType(deviceIndex)));
     }
     else
     {
         return(new Nolo_Transform());
     }
 }
コード例 #5
0
 public static Nolo_Vector3 GetHmdInitPosition()
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     if (hmdVersion >= API_2_0_0.apiVersion)
     {
         return(API_2_0_0.GetHmdInitPosition());
     }
     return(new Nolo_Vector3());
 }
コード例 #6
0
 public static int GetTrackingStatus(int type)
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     if (hmdVersion >= API_2_0_0.apiVersion)
     {
         return(API_2_0_0.GetDeviceTrackingStatus(type));
     }
     return(0);
 }
コード例 #7
0
 public static int GetElectricity(int deviceIndex)
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     if (hmdVersion >= API_1_0_0.apiVersion)
     {
         return(API_1_0_0.GetElectricityByDeviceType(deviceIndex));
     }
     else
     {
         return(0);
     }
 }
コード例 #8
0
 public static Nolo_ControllerStates GetControllerStates(int deviceIndex)
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     if (hmdVersion >= API_1_0_0.apiVersion)
     {
         return(API_1_0_0.GetControllerStatesByDeviceTyp(deviceIndex));
     }
     else
     {
         return(new Nolo_ControllerStates());
     }
 }
コード例 #9
0
 public static Nolo_Transform GetPose(int deviceIndex)
 {
     if (hmdVersion <= 0)
     {
         hmdVersion = API_1_0_0.GetVersionByDeviceType(0);
     }
     if (hmdVersion >= API_1_0_0.apiVersion)
     {
         return(new Nolo_Transform(API_1_0_0.GetPoseByDeviceType(deviceIndex)));
     }
     else
     {
         return(new Nolo_Transform());
     }
 }