Created
December 26, 2017 13:56
-
-
Save TakahiroMiyaura/5256714f1482ee6976d839ae1beea523 to your computer and use it in GitHub Desktop.
WinMRで始めるMixed Reality Toolkit - Unity ~モーションコントローラ操作で発生するイベントについて ref: https://qiita.com/miyaura/items/6419d554daeb4f366511
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//タッチパッドや、親指スティックの操作を行うと発生。 | |
void OnInputPositionChanged(InputPositionEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//タッチパッドに触れた場合に発生。 | |
void OnTouchpadTouched(InputEventData eventData); | |
//タッチパッドから離れた場合に発生。 | |
void OnTouchpadReleased(InputEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//入力ソースが回転した場合に発生 | |
void OnRotationChanged(SourceRotationEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//入力ソースが検出された場合に発生 | |
void OnSourceDetected(SourceStateEventData eventData); | |
//入力ソースが喪失した際に発生 | |
void OnSourceLost(SourceStateEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnDictationHypothesis(DictationEventData eventData); | |
void OnDictationResult(DictationEventData eventData); | |
void OnDictationComplete(DictationEventData eventData); | |
void OnDictationError(DictationEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnFocusEnter(); | |
void OnFocusExit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ゲームパッドが検出された場合に発生。 | |
void OnGamePadDetected(GamePadEventData eventData); | |
//ゲームパッドが未検出になった場合に発生。(概ね電源切ったとき) | |
void OnGamePadLost(GamePadEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnSpeechKeywordRecognized(SpeechEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnXboxAxisUpdate(XboxControllerEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ボタンを押した状態で発生 | |
void OnHoldStarted(HoldEventData eventData); | |
//ボタンを離した状態で発生。ただし、Canceledイベントが発生と排他。 | |
void OnHoldCompleted(HoldEventData eventData); | |
//Holdを開始した状態でモーションコントローラを動かすと発生。 | |
void OnHoldCanceled(HoldEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnInputClicked(InputClickedEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ボタンなどを押した場合に発生 | |
void OnInputDown(InputEventData eventData); | |
//ボタンなどを離した場合に発生 | |
void OnInputUp(InputEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//操作の開始時に発生 | |
void OnManipulationStarted(ManipulationEventData eventData); | |
//操作中に発生。 | |
void OnManipulationUpdated(ManipulationEventData eventData); | |
//ボタンを離す等して操作状態を解除した場合に発生 | |
void OnManipulationCompleted(ManipulationEventData eventData); | |
//色々試したんですがこれの発生条件が不明。。。 | |
void OnManipulationCanceled(ManipulationEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//操作の開始時に発生 | |
void OnNavigationStarted(NavigationEventData eventData); | |
//操作中に発生。 | |
void OnNavigationUpdated(NavigationEventData eventData); | |
//ボタンを離す等して操作状態を解除した場合に発生 | |
void OnNavigationCompleted(NavigationEventData eventData); | |
//色々試したんですがこれの発生条件が不明。。。 | |
void OnNavigationCanceled(NavigationEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//フォーカス取得した場合に発生 | |
void OnFocusEnter(PointerSpecificEventData eventData); | |
//フォーカスを喪失した場合に発生 | |
void OnFocusExit(PointerSpecificEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Selectボタンの押し具合を変えている間発生。 | |
void OnSelectPressedAmountChanged(SelectPressedEventData eventData); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//入力ソースが移動した場合に発生 | |
void OnPositionChanged(SourcePositionEventData eventData); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment