Search Results for

    Method Get

    Get(RawButton, ControllerType)

    Whether the button is holds down

    Declaration
    public static bool Get(YVRInput.RawButton rawMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.RawButton rawMask

    Target button

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    bool

    true if user holds down the rawMask button

    Get(VirtualButton, ControllerType)

    Whether the button is holds down

    Declaration
    public static bool Get(YVRInput.VirtualButton virtualMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.VirtualButton virtualMask

    Target button

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    bool

    true if user holds down the virtualMask button

    Get(RawTouch, ControllerType)

    Whether the button is being touched

    Declaration
    public static bool Get(YVRInput.RawTouch rawMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.RawTouch rawMask

    Target button

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    bool

    true if user is touching the rawMask button

    Get(VirtualTouch, ControllerType)

    Whether the button is being touched

    Declaration
    public static bool Get(YVRInput.VirtualTouch virtualMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.VirtualTouch virtualMask

    Target button

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    bool

    true if user is touching the virtualMask button

    Get(RawAxis1D, ControllerType)

    Get the trigger position

    Declaration
    public static float Get(YVRInput.RawAxis1D rawMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.RawAxis1D rawMask

    Target trigger

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    float

    position of the rawMask trigger, values is in -1 ~ 1

    Get(VirtualAxis1D, ControllerType)

    Get the trigger position

    Declaration
    public static float Get(YVRInput.VirtualAxis1D virtualMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.VirtualAxis1D virtualMask

    Target trigger

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    float

    position of the rawMask trigger, values is in -1 ~ 1

    Get(RawAxis2D, ControllerType)

    Get the thumbstick position

    Declaration
    public static Vector2 Get(YVRInput.RawAxis2D rawMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.RawAxis2D rawMask

    Target thumbstick

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    Vector2

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

    Get(VirtualAxis2D, ControllerType)

    Get the thumbstick position

    Declaration
    public static Vector2 Get(YVRInput.VirtualAxis2D virtualMask, ControllerType controllerMask = ControllerType.Active)
    Parameters
    Type Name Description
    YVRInput.VirtualAxis2D virtualMask

    Target thumbstick

    ControllerType controllerMask

    Target controller

    Returns
    Type Description
    Vector2

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

    In This Article