public void OnHoldStarted(HoldEventData eventData) { //TODO:: Create Coroutine so that player has to hold longer before the menu pops up... If needed if (GameController.instance._GameState != GameController.GameStates.GamePause) { GameController.instance.PauseGame(); InputManager.Instance.OverrideFocusedObject = null; } }
/// <summary> /// タップのホールドをキャンセルしたときの処理 /// </summary> /// <param name="eventData">ホールドのイベントデータ</param> public void OnHoldCanceled(HoldEventData eventData) { view.OnHoldCanceled(); if (Microphone.IsRecording(null)) { //録音中であれば録音停止 Microphone.End(null); } }
/// <summary> /// ホールドのキャンセル /// </summary> /// <param name="eventData"></param> public void OnHoldCanceled(HoldEventData eventData) { // 録音の中断 _recordingEventEventSubject.OnNext(RecordingEvent.Cancel); if (Microphone.IsRecording(null)) { Microphone.End(null); } }
/// <summary> /// Handle On Hold started from IHoldSource /// </summary> /// <param name="eventData"></param> public void OnHoldCanceled(HoldEventData eventData) { if (!m_disabled && ButtonState == ButtonStateEnum.Pressed) { DoButtonCanceled(); // Unset state from pressed. ButtonStateEnum newState = ButtonStateEnum.Targeted; this.OnStateChange(newState); } }
/// <summary> /// Lorsque l'utilisateur annule un appuie long sur un gameObject /// </summary> /// <param name="source">La source de l'événement (Les mains, la voix etc...)</param> /// <param name="ray">Le rayon partant du regard de l'utilisateur</param> private void OnHoldCanceledEventHandler(InteractionSourceKind source, Ray ray) { if (GazeManager.Instance.GameObjectFocused != null) { HoldEventData eventData = new HoldEventData() { Source = source, HeadRay = ray }; GazeManager.Instance.GameObjectFocused.SendMessageUpwards("OnHoldCancel", eventData); } }
public void OnHoldStarted(HoldEventData eventData) { m_HoldFinished = false; if (CurrentPlaneType.HasValue && PolygonManager.Instance.CurrentPolygon.Points.Count >= 4) { startTimerAnimation(); } else { TextManager.Instance.ShowWarning("Sie brauchen mindestens 4 Punkte um den Boden zu erstellen!"); } }
public void OnHoldCompleted(HoldEventData eventData) { //Debug.Log("Holding completed without movement"); //Holding = false; //// Create line if a line was being drawn //// mouseHeld = false; //firstPoint = true; //GenerateNewLine(); //ClearAllPoints(); ////eventData.Use(); }
public void OnHoldCanceled(HoldEventData eventData) { //Debug.Log("Canceled holding"); //Holding = false; //// Create line if a line was being drawn //// mouseHeld = false; //firstPoint = true; //GenerateNewLine(); //ClearAllPoints(); //eventData.Use(); }
public void OnHoldStarted(HoldEventData eventData) { if (Mode == GeometryMode.Line) { Mode = GeometryMode.Polygon; manager = PolygonManager.Instance; } else { OnPolygonClose(); } }
/// <summary> /// ホールドの完了 /// </summary> /// <param name="eventData"></param> public void OnHoldCompleted(HoldEventData eventData) { // 録音の終了を通知 _recordingEventEventSubject.OnNext(RecordingEvent.Complete); if (Microphone.IsRecording(null)) { Microphone.End(null); string filePath; var bytes = WavUtility.FromAudioClip(_audioSource.clip, out filePath, false); _recordDataSubject.OnNext(bytes); } }
/// <summary> /// On Hold start event for attaching objects if it's the correct option /// </summary> /// <param name="eventArgs"></param> public void OnHoldStarted(HoldEventData eventArgs) { if (m_InteractionType == AttachInteractionEnum.PressAndHold && m_InteractingFocus.Object == null) { currentInputSource = eventArgs.InputSource; currentInputSourceId = eventArgs.SourceId; IPointingSource pointing; if (FocusManager.Instance.TryGetSinglePointer(out pointing)) { AttachObject(pointing); } } }
/// <summary> /// ホールドの開始 /// </summary> /// <param name="eventData"></param> public void OnHoldStarted(HoldEventData eventData) { if (!_isMicConnected) { return; } _recordingEventEventSubject.OnNext(RecordingEvent.Start); if (!Microphone.IsRecording(null)) { _audioSource.clip = Microphone.Start(null, true, 3, _maxFreq); } }
public void OnHoldStarted(HoldEventData eventData) { Debug.LogFormat("Hold Event Started: {0}", Time.time); DisplayStatus(string.Format("Hold Event Started: {0}", Time.time)); isClickHold = true; HoldTimeTarget = Time.time + HoldTimeWait; if (currentState == ControlState.PlaceAnchor) { CancelAnchor(); } else { PlaceAnchor(); } }
/// <summary> /// タップのホールドを開始したときの処理 /// </summary> /// <param name="eventData">ホールドのイベントデータ</param> public void OnHoldStarted(HoldEventData eventData) { if (!micConnected) { // マイクが接続されていない場合はなにもしない return; } view.OnHoldStarted(); // 録音中でなければ処理を行う if (!Microphone.IsRecording(null)) { //録音開始 view.audioSrc.clip = Microphone.Start(null, true, 3, maxFreq); } }
/// <summary> /// タップのホールドを終了したときの処理 /// </summary> /// <param name="eventData">ホールドのイベントデータ</param> public void OnHoldCompleted(HoldEventData eventData) { view.OnHoldCompleted(); if (Microphone.IsRecording(null)) { //録音中であれば録音停止 Microphone.End(null); // audioclipをbyte配列に変換 string filepath; bytes = WavUtility.FromAudioClip(view.audioSrc.clip, out filepath, false); //Debug.Log(filepath); // 音声をテキストに変換するリクエスト送信 StartCoroutine(api.SendRequest(bytes)); } }
private void InitializeEventDatas() { inputEventData = new InputEventData(EventSystem.current); sourceClickedEventData = new InputClickedEventData(EventSystem.current); sourceStateEventData = new SourceStateEventData(EventSystem.current); manipulationEventData = new ManipulationEventData(EventSystem.current); navigationEventData = new NavigationEventData(EventSystem.current); holdEventData = new HoldEventData(EventSystem.current); pointerSpecificEventData = new PointerSpecificEventData(EventSystem.current); inputPositionEventData = new InputPositionEventData(EventSystem.current); selectPressedEventData = new SelectPressedEventData(EventSystem.current); sourceRotationEventData = new SourceRotationEventData(EventSystem.current); sourcePositionEventData = new SourcePositionEventData(EventSystem.current); xboxControllerEventData = new XboxControllerEventData(EventSystem.current); #if UNITY_WSA || UNITY_STANDALONE_WIN speechEventData = new SpeechEventData(EventSystem.current); dictationEventData = new DictationEventData(EventSystem.current); #endif }
public void OnHoldStarted(HoldEventData eventData) { }
public void OnHoldCompleted(HoldEventData eventData) { clone(); }
public void OnHoldCanceled(HoldEventData eventData) { _addForce = false; }
public void OnHoldCanceled(HoldEventData eventData) { }
public void OnHoldCompleted(HoldEventData eventData) { _addForce = false; }
public void OnHoldStarted(HoldEventData eventData) { Vector3 focusPoint; _addForce = Utils.IsFloorPointed(out focusPoint); }
public void OnHoldCanceled(HoldEventData eventData) { HoldFinishTime = Time.time; }
public void OnHoldStarted(HoldEventData eventData) { HoldStartTime = Time.time; }
public void OnHoldCanceled(HoldEventData eventData) { // Nothing to do }
public void OnHoldStarted(HoldEventData eventData) { OnPolygonClose(); }
public void OnHoldCompleted(HoldEventData eventData) { // Nothing to do }
public void OnHoldCanceled(HoldEventData eventData) { _debugTextHold = "OnHoldCanceled"; }
public void OnHoldCompleted(HoldEventData eventData) { _debugTextHold = "OnHoldCompleted"; }
public void OnHoldStarted(HoldEventData eventData) { _debugTextHold = "OnHoldStarted"; }
public void OnHoldStarted(HoldEventData eventData) { Debug.LogFormat("OnHoldStarted\r\nSource: {0} SourceId: {1}", eventData.InputSource, eventData.SourceId); }