Table of Contents

Method GetDown

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

GetDown(RawButton, ControllerType)

Whether the button is pressed down in this frame

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

Parameters

rawMask YVRInput.RawButton

Target button

controllerMask ControllerType

Target controller

Returns

bool

true if the rawMask button is pressed down in this frame

GetDown(VirtualButton, ControllerType)

Whether the button is pressed down in this frame

public static bool GetDown(YVRInput.VirtualButton virtualMask, ControllerType controllerMask = ControllerType.Active)

Parameters

virtualMask YVRInput.VirtualButton

Target button

controllerMask ControllerType

Target controller

Returns

bool

true if the virtualMask button is pressed down in this frame

GetDown(RawTouch, ControllerType)

Whether the button is touched down in this frame

public static bool GetDown(YVRInput.RawTouch rawMask, ControllerType controllerMask = ControllerType.Active)

Parameters

rawMask YVRInput.RawTouch

Target button

controllerMask ControllerType

Target controller

Returns

bool

true if the rawMask button is touched down in this frame

GetDown(VirtualTouch, ControllerType)

Whether the button is touched down in this frame

public static bool GetDown(YVRInput.VirtualTouch virtualMask, ControllerType controllerMask = ControllerType.Active)

Parameters

virtualMask YVRInput.VirtualTouch

Target button

controllerMask ControllerType

Target controller

Returns

bool

true if the virtualMask button is touched down in this frame