void IPointerTriggerPressDownHandler.OnPointerTriggerPressDown(ViveControllerModule.EventData eventData) { if (module == null || module != null && module == eventData.module) { teleporter.Teleport(eventData.worldPosition); } }
void IGlobalTriggerTouchDownHandler.OnGlobalTriggerTouchDown(ViveControllerModule.EventData eventData) { if (button == ButtonType.TriggerTouch) { Toggle(); } }
void IGlobalGripPressDownHandler.OnGlobalGripPressDown(ViveControllerModule.EventData eventData) { if (button == ButtonType.Grip) { Toggle(); } }
void IGlobalTouchpadPressDownHandler.OnGlobalTouchpadPressDown(ViveControllerModule.EventData eventData) { if (button == ButtonType.TouchpadPress) { Toggle(); } }
void IGlobalApplicationMenuPressDownHandler.OnGlobalApplicationMenuPressDown(ViveControllerModule.EventData eventData) { if (button == ButtonType.AppMenu) { Toggle(); } }