コード例 #1
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 protected virtual void Dispose(bool disposing)
 {
     System.Diagnostics.Debug.WriteLine(String.Format("[OSVR] In Interface.Dispose({0})", disposing));
     if (disposing)
     {
         if (m_interface != null && !m_interface.IsInvalid)
         {
             m_interface.Dispose();
             m_interface = null;
         }
     }
 }
コード例 #2
0
            /// @brief Get the interface associated with the given path.
            /// @param path A resource path.
            /// @returns The interface object.
            public Interface getInterface(string path)
            {
                SafeClientInterfaceHandle iface = new SafeClientInterfaceHandle();
                Byte ret = Interface.osvrClientGetInterface(this.m_context, path, ref iface);

                if (OSVR_RETURN_SUCCESS != ret)
                {
                    throw new ArgumentException("Couldn't create interface because the path was invalid.");
                }
                this.AddChildDisposable(iface);
                return(new Interface(iface));
            }
コード例 #3
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetNaviPositionState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec2 state);
コード例 #4
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetEyeTracker3DState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref EyeTracker3DState state);
コード例 #5
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetAnalogState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Double state);
コード例 #6
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetOrientationState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Quaternion state);
コード例 #7
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrClientGetInterface(SafeClientContextHandle ctx, string path, ref SafeClientInterfaceHandle iface);
コード例 #8
0
ファイル: ClientKit.cs プロジェクト: itguy327/Managed-OSVR
            /// @brief Get the interface associated with the given path.
            /// @param path A resource path.
            /// @returns The interface object.
            public Interface getInterface(string path)
            {
                SafeClientInterfaceHandle iface = new SafeClientInterfaceHandle();
                Byte ret = Interface.osvrClientGetInterface(this.m_context, path, ref iface);
                if (OSVR_RETURN_SUCCESS != ret)
                {
                    throw new ArgumentException("Couldn't create interface because the path was invalid.");
                }

                return new Interface(iface);
            }
コード例 #9
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetButtonState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Byte state);
コード例 #10
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetOrientationState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Quaternion state);
コード例 #11
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetPoseState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Pose3 state);
コード例 #12
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrClientGetInterface(SafeClientContextHandle ctx, string path, ref SafeClientInterfaceHandle iface);
コード例 #13
0
 public extern static Byte osvrGetNaviPositionState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec2 state);
コード例 #14
0
 public extern static Byte osvrGetEyeTracker2DState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec2 state);
コード例 #15
0
 public extern static Byte osvrRegisterNaviVelocityCallback(SafeClientInterfaceHandle iface, [MarshalAs(UnmanagedType.FunctionPtr)] NaviVelocityCallback cb, IntPtr /*void*/ userdata);
コード例 #16
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetAnalogState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Double state);
コード例 #17
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrRegisterPoseCallback(SafeClientInterfaceHandle iface, PoseCallback cb, IntPtr /*void**/ userdata);
コード例 #18
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetLocation2DState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec2 state);
コード例 #19
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrRegisterPoseCallback(SafeClientInterfaceHandle iface, PoseCallback cb, IntPtr /*void**/ userdata);
コード例 #20
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetDirectionState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec3 state);
コード例 #21
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetPoseState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Pose3 state);
コード例 #22
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetEyeTracker3DState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref EyeTracker3DState state);
コード例 #23
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetButtonState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Byte state);
コード例 #24
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrGetEyeTrackerBlinkState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, [MarshalAs(UnmanagedType.I1)]ref bool state);
コード例 #25
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetDirectionState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, ref Vec3 state);
コード例 #26
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 /// @brief Constructs an Interface object from an OSVR_ClientInterface
 /// object.
 public Interface(SafeClientInterfaceHandle iface)
 {
     this.m_interface = iface;
 }
コード例 #27
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrGetEyeTrackerBlinkState(SafeClientInterfaceHandle iface, ref TimeValue timestamp, [MarshalAs(UnmanagedType.I1)] ref bool state);
コード例 #28
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 protected virtual void Dispose(bool disposing)
 {
     System.Diagnostics.Debug.WriteLine(String.Format("[OSVR] In Interface.Dispose({0})", disposing));
     if (disposing)
     {
         if (m_interface != null && !m_interface.IsInvalid)
         {
             m_interface.Dispose();
             m_interface = null;
         }
     }
 }
コード例 #29
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 /// @brief Constructs an Interface object from an OSVR_ClientInterface
 /// object.
 public Interface(SafeClientInterfaceHandle iface)
 {
     this.m_interface = iface;
 }
コード例 #30
0
ファイル: Interface.cs プロジェクト: iscoder/Managed-OSVR
 public static extern Byte osvrRegisterPositionCallback(SafeClientInterfaceHandle iface, [MarshalAs(UnmanagedType.FunctionPtr)] PositionCallback cb, IntPtr /*void**/ userdata);
コード例 #31
0
ファイル: Interface.cs プロジェクト: ReliaSolve/Managed-OSVR
 public extern static Byte osvrRegisterPositionCallback(SafeClientInterfaceHandle iface, [MarshalAs(UnmanagedType.FunctionPtr)] PositionCallback cb, IntPtr /*void**/ userdata);
コード例 #32
0
 public extern static Byte osvrRegisterEyeTrackerBlinkCallback(SafeClientInterfaceHandle iface, [MarshalAs(UnmanagedType.FunctionPtr)] EyeTrackerBlinkCallback cb, IntPtr /*void**/ userdata);