XRSPACE Developer Console

Component - XRDeviceCallBack

With this component user can get all kinds of input callback.

  • If device choose HANDLER_RIGHT, trigger type choose Hand.

    ../_images/Component-XRDeviceCallback-Hand.png
  • If device choose HANDLER_RIGHT, trigger type choose Controller.

    ../_images/Component-XRDeviceCallback-Controller.png
  • If device choose HEADSET.

    ../_images/Component-XRDeviceCallback-Headset.png

There are some options for developers to set:

  • Device: Choose which input to use.

  • TriggerType

    • Controller

      • TriggerButton: The button that the developer wants to trigger after pressing.

      • OnButtonDown: Provide developers to set button event when the button press.

      • OnButton: Provide developers to set button event during the button press.

      • OnButtonUp: Provide developers to set button event when the button up.

    • Hand

      • OnGesture: Provide developers to get hand gesture callback.

    • Headset

      • OnGazeStart(): Start calculating Gaze time, it’s familiar with OnButtonDown().

      • OnGaze(): During calculating Gaze time and return duration percentage, it’s familiar with OnButton().

      • OnGazeEnd(): Stop calculating Gaze time, it’s familiar with OnButtonUp().