Beispiel #1
0
        public static QuaternionVector4 GetReferenceDeviceAngleDifference()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetReferenceDeviceAngleDifference());
        }
Beispiel #2
0
        public static bool GetVirtualRingEnabled()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetVirtualRingEnabled());
        }
Beispiel #3
0
        public static void SetVirtualRing(bool pause)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetVirtualRing(pause);
        }
Beispiel #4
0
        public static void SetTreadmillPause(bool pause)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetTreadmillPause(pause);
        }
Beispiel #5
0
        public static void StopTreadmill()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.StopTreadmill();
        }
Beispiel #6
0
        /**
         * Returns the polar direction of the speed of the treadmill.
         */
        public static double GetFloorSpeedDirection()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetFloorSpeedDirection());
        }
Beispiel #7
0
        public static void SetBrake(bool brake)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetBrake(brake);
        }
Beispiel #8
0
        /**
         * Gets the remaining demo time, if the treadmill is in "Demo" mode
         *
         * NOTE: Not currently implemented
         */
        public static double GetDemoTimeRemaining()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetDemoTimeRemaining());
        }
Beispiel #9
0
        /**
         * Checks whether the treadmill is in "Demo" mode
         *
         * NOTE: Not currently implemented
         */
        public static void SetAPILock(bool locked)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetAPILock(locked);
        }
Beispiel #10
0
        /**
         * Checks whether the treadmill is in "Demo" mode
         *
         * NOTE: Not currently implemented
         */
        public static bool GetDemoMode()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetDemoMode());
        }
Beispiel #11
0
        /**
         * Returns the x,y,z coordinates of the ring, which corresponds to the center
         * of the treadmill in VR space. Also retrieves the radius of the ring.
         */
        public static Ring GetRingValues()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetRing());
        }
Beispiel #12
0
        public static void SetUserPosition(double x, double y)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetUserPosition(x, y);
        }
Beispiel #13
0
        /**
         * Requests a change in the treadmill's run state.
         */
        public static void RequestTreadmillRunState(bool run)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetTreadmillRunState(run);
        }
Beispiel #14
0
        public static void SetUserRotation(double w, double x, double y, double z)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetUserRotation(w, x, y, z);
        }
Beispiel #15
0
 /**
  * Loads internal functionality. Should be called during application
  * initialization
  */
 public static void InitConnection(ref InfinadeckInitError inError)
 {
     InfinadeckInterOp.InitInternal(ref inError);
     if (inError != InfinadeckInitError.InfinadeckInitError_None)
     {
         InfinadeckInterOp.InitInternal(ref inError, true);
         return;
     }
     return;
 }
Beispiel #16
0
        public static void SetManualSpeeds(double x, double y)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetManualSpeeds(x, y);
        }
Beispiel #17
0
        //Deprecated Functions
        public static void SetTreadmillRunState(bool run) //FLAGGED FOR DEPRECATION, may just need to be deleted outright, your call
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetTreadmillRunState(run);
        }
Beispiel #18
0
        /**
         * Returns true if the treadmill is running, and false if the treadmill is
         * stopped.
         */
        public static bool GetTreadmillRunState()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetTreadmillRunState(true));
        }
Beispiel #19
0
        /**
         * Fills a TreadmillInfo struct with information about currently connected
         * treadmill
         *
         * NOTE: Not currently implemented
         */
        public static TreadmillInfo GetTreadmillInfo()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            TreadmillInfoPayload info_payload = InfinadeckInterOp.GetTreadmillInfo();

            return(new TreadmillInfo(info_payload.id, info_payload.model_number, info_payload.dll_version));
        }
Beispiel #20
0
        /**
         * Fills a TreadmillInfo struct with information about currently connected
         * treadmill
         *
         * NOTE: Not currently implemented
         */
        public static TreadmillInfo GetTreadmillInfo()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            TreadmillInfo info_payload;

            InfinadeckInterOp.GetTreadmillInfo(out info_payload);
            return(info_payload);
        }
Beispiel #21
0
 public static DiagnosticInfo GetDiagnostics()
 {
     return(InfinadeckInterOp.GetDiagnostics());
 }
Beispiel #22
0
 /**
  * Check if connection to treadmill service has been established.
  */
 public static bool CheckConnection()
 {
     return(InfinadeckInterOp.CheckConnection());
 }
Beispiel #23
0
 /**
  * Unloads internal functionality. API functions should not be called after
  * this. Should be called on application exit.
  */
 public static void DeInitConnection(ref InfinadeckInitError inError)
 {
     InfinadeckInterOp.DeInitInternal(ref inError);
 }
Beispiel #24
0
 /**
  * Loads internal functionality. Should be called during application
  * initialization
  */
 public static void InitConnection(ref InfinadeckInitError inError)
 {
     InfinadeckInterOp.InitInternal(ref inError);
     return;
 }
Beispiel #25
0
 public static UserPositionRotation GetUserPositionRotation()
 {
     return(InfinadeckInterOp.GetUserPositionRotation());
 }