Пример #1
0
    // Update camera position, rotation and projection
    void LateUpdate()
    {
        UpdateCamera(WebXRViewEyes.Left);
        UpdateCamera(WebXRViewEyes.Right);

        UpdateInput(LeftInput);
        UpdateInput(RightInput);

        LeftInput.Available  = _byteArray[44] != 0;
        RightInput.Available = _byteArray[45] != 0;

        // Input source change event
        if (_byteArray[3] != 0)
        {
            InputSourcesChange.Invoke();
            _byteArray[3] = 0;
        }

        // Session state changed invoked when all gamepads and cameras are updated
        if (InternalInSession && !InSession) //New session detected
        {
            InSession = true;
            SessionStart.Invoke();
        }
        else if (InSession && !InternalInSession) // End of session detected
        {
            InSession = false;
            SessionEnd.Invoke();
        }
    }
Пример #2
0
 private void startBoot()
 {
     updHostname();
     SessionStart?.Invoke();
     _osEntity = _plexgate.New <OSEntity>();
     _plexgate.GetLayer(LayerType.Main).AddEntity(_osEntity);
 }
 protected virtual void OnSessionStart(Vector3 focusPoint)
 {
     notifyListeners("Session_Start", focusPoint);
     if (null != SessionStart)
     {
         SessionStart.Invoke(this, new SessionStartEventArgs(focusPoint));
     }
 }
Пример #4
0
 public async void RunSession()
 {
     if (_SessionLoop.CurrentIteration > 1)
     {
         _Status = StatusType.SessionRest;
         await SessionRest.RunAsync(CancelToken);
     }
     SessionStart?.Invoke(this, _SessionLoop.CurrentIteration);
     RunTrialSet();
 }
Пример #5
0
        private void btnStart_Click(object sender, RoutedEventArgs e)
        {
            SessionType type = listSessionType.SelectedItem as SessionType;

            if (type == null)
            {
                return;
            }
            SavedState.Data.CurrentSession = new Session()
            {
                TypeId = type.Id
            };
            SavedState.Save();
            SessionStart?.Invoke(this, type.Id);
        }
Пример #6
0
 private void OnTestStart(ITestResultCollection statistics)
 {
     SessionStart?.Invoke(statistics);
 }
Пример #7
0
 public static void CallSessionStart()
 {
     SessionStart?.Invoke();
 }