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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |