Exemplo n.º 1
0
        public static QuaternionVector4 GetReferenceDeviceAngleDifference()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetReferenceDeviceAngleDifference());
        }
Exemplo n.º 2
0
        public static void StopTreadmill()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.StopTreadmill();
        }
Exemplo n.º 3
0
        public static bool GetVirtualRingEnabled()
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            return(InfinadeckInterOp.GetVirtualRingEnabled());
        }
Exemplo n.º 4
0
        public static void SetVirtualRing(bool pause)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetVirtualRing(pause);
        }
Exemplo n.º 5
0
        public static void SetTreadmillPause(bool pause)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetTreadmillPause(pause);
        }
Exemplo n.º 6
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;
 }
Exemplo n.º 7
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);
        }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
0
        public static void SetBrake(bool brake)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetBrake(brake);
        }
Exemplo n.º 10
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());
        }
Exemplo n.º 11
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);
        }
Exemplo n.º 12
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);
        }
Exemplo n.º 13
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());
        }
Exemplo n.º 14
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());
        }
Exemplo n.º 15
0
        public static void SetUserPosition(double x, double y)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetUserPosition(x, y);
        }
Exemplo n.º 16
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);
        }
Exemplo n.º 17
0
        public static void SetManualSpeeds(double x, double y)
        {
            InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None;

            if (!CheckConnection())
            {
                InitConnection(ref e);
            }
            InfinadeckInterOp.SetManualSpeeds(x, y);
        }
Exemplo n.º 18
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());
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }
Exemplo n.º 21
0
 internal static extern uint DeInitInternal(ref InfinadeckInitError inError);
Exemplo n.º 22
0
 internal static extern uint InitInternal(ref InfinadeckInitError inError, bool use_server = false);
Exemplo n.º 23
0
 internal static extern uint VerifyControllerVersion(ref InfinadeckInitError inError);
Exemplo n.º 24
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);
 }
Exemplo n.º 25
0
 internal static extern uint VerifyInterfaceVersion(ref InfinadeckInitError inError);
Exemplo n.º 26
0
 /**
  * Loads internal functionality. Should be called during application
  * initialization
  */
 public static void InitConnection(ref InfinadeckInitError inError)
 {
     InfinadeckInterOp.InitInternal(ref inError);
     return;
 }