示例#1
0
    // Private methods
    private void Setup()
    {
        if (ManagerInstance == null)
        {
#if LOAD_DLL_MANUALLY
            if (IntPtr.Size == 8)
            {
                psmoveapiHandle        = LoadLib("Assets/Plugins/x86_64/psmoveapi.dll");
                psmoveapiTrackerHandle = LoadLib("Assets/Plugins/x86_64/psmoveapi_tracker.dll");
            }
            else
            {
                psmoveapiHandle        = LoadLib("Assets/Plugins/x86/psmoveapi.dll");
                psmoveapiTrackerHandle = LoadLib("Assets/Plugins/x86/psmoveapi_tracker.dll");
            }
#endif

            ManagerInstance = this;
            PSMoveHitchWatchdog.EmitHitchLogging = this.EmitHitchLogging;
            PSMoveWorker.StartWorkerThread(
                new PSMoveWorkerSettings()
            {
                Multithreaded        = this.UseMultithreading,
                UseManualExposure    = this.UseManualExposure,
                ManualExposureValue  = this.ManualExposureValue,
                InitialTrackingColor = this.InitialTrackingColor,
                PSMoveOffset         = this.PSMoveOffset,
                Filter3DType         = this.Filter3DType,
                DisableTracking      = this.DisableTracking,
                ApplicationDataPath  = Application.dataPath
            });
        }
    }
示例#2
0
    // Private methods
    private void Setup()
    {
        if (ManagerInstance == null)
        {
#if LOAD_DLL_MANUALLY
            if (IntPtr.Size == 8)
            {
                cleyeHandle            = IntPtr.Zero;
                psmoveapiHandle        = LoadLib("Assets/Plugins/x86_64/psmoveapi.dll");
                psmoveapiTrackerHandle = LoadLib("Assets/Plugins/x86_64/psmoveapi_tracker.dll");
            }
            else
            {
                cleyeHandle            = LoadLib("c:/Windows/SysWOW64/CLEyeMulticam.dll");
                psmoveapiHandle        = LoadLib("Assets/Plugins/x86/psmoveapi.dll");
                psmoveapiTrackerHandle = LoadLib("Assets/Plugins/x86/psmoveapi_tracker.dll");
            }
#endif

            ManagerInstance = this;
            PSMoveHitchWatchdog.EmitHitchLogging = this.EmitHitchLogging;
            PSMoveWorker.StartWorkerThread(
                new PSMoveWorkerSettings()
            {
                CameraAPI            = this.CameraAPI,
                Multithreaded        = this.UseMultithreading,
                UseManualExposure    = this.UseManualExposure,
                ManualExposureValue  = this.ManualExposureValue,
                InitialTrackingColor = this.InitialTrackingColor,
                DisableTracking      = this.DisableTracking,
                ApplicationDataPath  = Application.dataPath
            });
        }
    }