public static GetManagerInstance ( ) : PSMoveManager, | ||
return | PSMoveManager, |
public void OnDestroy() { if (PSMoveManager.GetManagerInstance() != null) { PSMoveManager.GetManagerInstance().ReleasePSMove(dataContext); } }
protected sealed override void Update(GameTime gameTime) { base.Update(gameTime); if (UsePsMove) { PSMoveManager.GetManagerInstance().Update(); PsMoveController.Update(); } if (firstUpdate) { firstUpdate = false; workerThread = new Thread(() => { while (IsRunning) { //Thread.Sleep(100); UpdateAsync(); //Console.WriteLine("b" + Time.ElapsedGameTime.TotalSeconds); // } }); workerThread.Start(); } }
/// <summary> /// NOTE! This function does NOT pair the controller by Bluetooth. /// If the controller is not already paired, it can only be connected by USB. /// See README for more information. /// </summary> public void Start() { if (PSMoveManager.GetManagerInstance() != null) { dataContext = PSMoveManager.GetManagerInstance().AcquirePSMove(this.PSMoveID); } }
void move_OnButtonPSPressed(object sender, EventArgs e) { Debug.Log("PS button pressed"); PSMoveManager.GetManagerInstance().AlignToCenterEye(transform, Camera.main.transform); }