VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | Public Attributes | Protected Member Functions | Properties | Private Attributes | List of all members
AVR.UI.VRInput Class Reference

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

Inheritance diagram for AVR.UI.VRInput:

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
 

Detailed Description

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.