This class overrides the base Input with Input from our VR components, thus enabling UI Interaction with a VR controller. The public attributes are automatically set by UIInteractionProvider. More...
Public Member Functions | |
void | setEventCamera (Camera eventCamera) |
Sets a given camera to the current eventcamera. Typically called from AVR_UIInteractionprovider. More... | |
override bool | GetMouseButton (int button) |
override bool | GetMouseButtonDown (int button) |
override bool | GetMouseButtonUp (int button) |
Public Attributes | |
AVR_ControllerInputManager | inputManager => AVR_UIInteractionProvider.currentActive?.controller?.inputManager |
AVR_ControllerInputManager.BoolEvent | mouseButton0Click => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton0Click : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
AVR_ControllerInputManager.BoolEvent | mouseButton0Down => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton0Down : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
AVR_ControllerInputManager.BoolEvent | mouseButton0Up => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton0Up : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
AVR_ControllerInputManager.BoolEvent | mouseButton1Click => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton1Click : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
AVR_ControllerInputManager.BoolEvent | mouseButton1Down => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton1Down : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
AVR_ControllerInputManager.BoolEvent | mouseButton1Up => AVR_UIInteractionProvider.currentActive ? AVR_UIInteractionProvider.currentActive.mouseButton1Up : AVR_ControllerInputManager.BoolEvent.ALWAYS_FALSE |
Protected Member Functions | |
override void | Awake () |
Properties | |
static VRInput | Instance [get, set] |
Singleton instance of this class. There should only be one VRInput component. More... | |
override bool | mousePresent [get] |
override Vector2 | mousePosition [get] |
Private Attributes | |
Camera | eventCamera = null |
This class overrides the base Input with Input from our VR components, thus enabling UI Interaction with a VR controller. The public attributes are automatically set by UIInteractionProvider.
Definition at line 14 of file VRInput.cs.