Table of Contents

Method Get

Namespace
YVR.Core
Assembly
YVR.Core.Runtime.dll

Get(RawButton, ControllerType)

Whether the button is holds down

public static bool Get(YVRInput.RawButton rawMask, ControllerType controllerMask = ControllerType.Active)

Parameters

rawMask YVRInput.RawButton

Target button

controllerMask ControllerType

Target 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.VirtualButton

Target button

controllerMask ControllerType

Target 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.RawTouch

Target button

controllerMask ControllerType

Target 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.VirtualTouch

Target button

controllerMask ControllerType

Target 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.RawAxis1D

Target trigger

controllerMask ControllerType

Target 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.VirtualAxis1D

Target trigger

controllerMask ControllerType

Target 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.RawAxis2D

Target thumbstick

controllerMask ControllerType

Target 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.VirtualAxis2D

Target thumbstick

controllerMask ControllerType

Target controller

Returns

Vector2

position of virtualMask thumbstick, both x/y axis value is in -1 ~ 1