Class YVRInput
Implements all controllers input state related functions
Inherited Members
Namespace: YVR.Core
Assembly: YVR.Core.Runtime.dll
Syntax
public static class YVRInput
Methods
| Name | Description |
|---|---|
| ClearActiveController() | Set the existing active controller flag to None and start recording it again. |
| ClearClickedController() | Set the existing clicked controller flag to None and start recording it again. |
| ClearTouchedController() | Set the existing touched controller flag to None and start recording it again. |
| Get(RawAxis1D, ControllerType) | Get the trigger position |
| Get(RawAxis2D, ControllerType) | Get the thumbstick position |
| Get(RawButton, ControllerType) | Whether the button is holds down |
| Get(RawTouch, ControllerType) | Whether the button is being touched |
| Get(VirtualAxis1D, ControllerType) | Get the trigger position |
| Get(VirtualAxis2D, ControllerType) | Get the thumbstick position |
| Get(VirtualButton, ControllerType) | Whether the button is holds down |
| Get(VirtualTouch, ControllerType) | Whether the button is being touched |
| GetActiveController() | Get the active controller in current frame. |
| GetClickedController() | Get last clicked controller |
| GetControllerBatteryPercentRemaining(ControllerType) | Get the remaining battery of the controller in percent |
| GetControllerIsCharging(ControllerType) | Implements all controllers input state related functions |
| GetDown(RawButton, ControllerType) | Whether the button is pressed down in this frame |
| GetDown(RawTouch, ControllerType) | Whether the button is touched down in this frame |
| GetDown(VirtualButton, ControllerType) | Whether the button is pressed down in this frame |
| GetDown(VirtualTouch, ControllerType) | Whether the button is touched down in this frame |
| GetPrimaryController() | Get the primary controller set in the global system |
| GetTouchedController() | Get last touched controller |
| GetUp(RawButton, ControllerType) | Whether the button is pressed up in this frame |
| GetUp(RawTouch, ControllerType) | Whether the button is touched up in this frame |
| GetUp(VirtualButton, ControllerType) | Whether the button is pressed up in this frame |
| GetUp(VirtualTouch, ControllerType) | Whether the button is touched up in this frame |
| IsControllerConnected(ControllerType) | Is controller connected or not |
| SetControllerVibration(float, float, float, ControllerType) | Make specific controller vibrate at the set frequency and amplitude |
| SetControllerVibration(float, float, ControllerType) | Make specific controller vibrate at the set frequency and amplitude |
| SetPrimaryController(ControllerType) | Set the primary controller in global system |
| Update() | Implements all controllers input state related functions |