public static QuaternionVector4 GetReferenceDeviceAngleDifference() { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } return(InfinadeckInterOp.GetReferenceDeviceAngleDifference()); }
public static bool GetVirtualRingEnabled() { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } return(InfinadeckInterOp.GetVirtualRingEnabled()); }
public static void SetVirtualRing(bool pause) { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.SetVirtualRing(pause); }
public static void SetTreadmillPause(bool pause) { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.SetTreadmillPause(pause); }
public static void StopTreadmill() { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.StopTreadmill(); }
/** * 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()); }
public static void SetBrake(bool brake) { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.SetBrake(brake); }
/** * 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()); }
/** * 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); }
/** * 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()); }
/** * 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()); }
public static void SetUserPosition(double x, double y) { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.SetUserPosition(x, y); }
/** * 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); }
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); }
/** * 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; }
public static void SetManualSpeeds(double x, double y) { InfinadeckInitError e = InfinadeckInitError.InfinadeckInitError_None; if (!CheckConnection()) { InitConnection(ref e); } InfinadeckInterOp.SetManualSpeeds(x, y); }
//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); }
/** * 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)); }
/** * 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)); }
/** * 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); }
public static DiagnosticInfo GetDiagnostics() { return(InfinadeckInterOp.GetDiagnostics()); }
/** * Check if connection to treadmill service has been established. */ public static bool CheckConnection() { return(InfinadeckInterOp.CheckConnection()); }
/** * 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); }
/** * Loads internal functionality. Should be called during application * initialization */ public static void InitConnection(ref InfinadeckInitError inError) { InfinadeckInterOp.InitInternal(ref inError); return; }
public static UserPositionRotation GetUserPositionRotation() { return(InfinadeckInterOp.GetUserPositionRotation()); }