Exemple #1
0
 public PSMoveDataContext(
     int moveID,
     PSMoveRawControllerData_Concurrent controllerConcurrentData)
 {
     PSMoveID          = moveID;
     Pose              = new PSMovePose();
     RawControllerData = new PSMoveRawControllerData_TLS(controllerConcurrentData);
 }
Exemple #2
0
        private PSMoveWorker()
        {
            WorkerSettings = new PSMoveWorkerSettings();

            HaltThreadSignal      = new ManualResetEvent(false);
            ThreadExitedSignal    = new ManualResetEvent(false);
            WorkerThread          = new Thread(() => { this.ThreadProc(); });
            WorkerThread.Priority = System.Threading.ThreadPriority.AboveNormal;

            WorkerControllerDataArray_Concurrent = new PSMoveRawControllerData_Concurrent[MAX_CONTROLLERS];
            WorkerControllerDataArray            = new PSMoveRawControllerData_TLS[MAX_CONTROLLERS];
            for (int i = 0; i < WorkerControllerDataArray_Concurrent.Length; i++)
            {
                WorkerControllerDataArray_Concurrent[i] = new PSMoveRawControllerData_Concurrent();
                WorkerControllerDataArray[i]            = new PSMoveRawControllerData_TLS(WorkerControllerDataArray_Concurrent[i]);
            }
            psmoveapiHandle        = IntPtr.Zero;
            psmoveapiTrackerHandle = IntPtr.Zero;
        }
Exemple #3
0
 public PSMoveRawControllerData_TLS(PSMoveRawControllerData_Concurrent concurrentData)
     : base()
 {
     ConcurrentData = concurrentData;
 }