Method Get
Get(RawButton, ControllerType)
Whether the button is holds down
public static bool Get(YVRInput.RawButton rawMask, ControllerType controllerMask = ControllerType.Active)
Parameters
rawMask
YVRInput.RawButtonTarget button
controllerMask
ControllerTypeTarget controller
Returns
- bool
true if user holds down the
rawMask
button
Get(VirtualButton, ControllerType)
Whether the button is holds down
public static bool Get(YVRInput.VirtualButton virtualMask, ControllerType controllerMask = ControllerType.Active)
Parameters
virtualMask
YVRInput.VirtualButtonTarget button
controllerMask
ControllerTypeTarget controller
Returns
- bool
true if user holds down the
virtualMask
button
Get(RawTouch, ControllerType)
Whether the button is being touched
public static bool Get(YVRInput.RawTouch rawMask, ControllerType controllerMask = ControllerType.Active)
Parameters
rawMask
YVRInput.RawTouchTarget button
controllerMask
ControllerTypeTarget controller
Returns
- bool
true if user is touching the
rawMask
button
Get(VirtualTouch, ControllerType)
Whether the button is being touched
public static bool Get(YVRInput.VirtualTouch virtualMask, ControllerType controllerMask = ControllerType.Active)
Parameters
virtualMask
YVRInput.VirtualTouchTarget button
controllerMask
ControllerTypeTarget controller
Returns
- bool
true if user is touching the
virtualMask
button
Get(RawAxis1D, ControllerType)
Get the trigger position
public static float Get(YVRInput.RawAxis1D rawMask, ControllerType controllerMask = ControllerType.Active)
Parameters
rawMask
YVRInput.RawAxis1DTarget trigger
controllerMask
ControllerTypeTarget controller
Returns
- float
position of the
rawMask
trigger, values is in -1 ~ 1
Get(VirtualAxis1D, ControllerType)
Get the trigger position
public static float Get(YVRInput.VirtualAxis1D virtualMask, ControllerType controllerMask = ControllerType.Active)
Parameters
virtualMask
YVRInput.VirtualAxis1DTarget trigger
controllerMask
ControllerTypeTarget controller
Returns
- float
position of the
rawMask
trigger, values is in -1 ~ 1
Get(RawAxis2D, ControllerType)
Get the thumbstick position
public static Vector2 Get(YVRInput.RawAxis2D rawMask, ControllerType controllerMask = ControllerType.Active)
Parameters
rawMask
YVRInput.RawAxis2DTarget thumbstick
controllerMask
ControllerTypeTarget controller
Returns
- Vector2
position of
rawMask
thumbstick, both x/y axis value is in -1 ~ 1
Get(VirtualAxis2D, ControllerType)
Get the thumbstick position
public static Vector2 Get(YVRInput.VirtualAxis2D virtualMask, ControllerType controllerMask = ControllerType.Active)
Parameters
virtualMask
YVRInput.VirtualAxis2DTarget thumbstick
controllerMask
ControllerTypeTarget controller
Returns
- Vector2
position of
virtualMask
thumbstick, both x/y axis value is in -1 ~ 1