/*
* This file holds game-specific OpenVR input configuration.
* Edit it.
*/
#if UNITY_2017_2_OR_NEWER
namespace ZenFulcrum.EmbeddedBrowser.VR {
partial class OpenVRInput {
///
/// Direct or remappable (action) input mode?
/// False: we are looking at controller buttons directly
/// True: we are using the remappable action input system (SteamVR 2.x)
///
private InputMode mode = InputMode.Direct;//may need to restart Unity and/or SteamVR if you switch to this mode after using the new system
// private InputMode mode = InputMode.MappedActions;
/*
* If you're using SteamVR 2.x with the new input mapping system change
* the above to InputMode.MappedActions, then create or customize the inputs listed below:
*/
///
/// Direction we use to point at browsers. pose type
/// Mandatory.
///
private const string PointPose = "/actions/ui/in/UIPointer";
///
/// Input path for "left" click. bool type
/// Empty to disable.
///
private const string LeftClickAction = "/actions/ui/in/InteractMain";
///
/// Input path for "middle" click. bool type
/// Empty to disable.
///
private const string MiddleClickAction = "/actions/ui/in/InteractMiddle";
///
/// Input path for "right" click. bool type
/// Empty to disable.
///
private const string RightClickAction = "/actions/ui/in/InteractContext";
///
/// Joystick input for 2D scrolling. Vector2 type
/// Move the joystick up/down/left/right and hold it to scroll. Push farther to scroll faster.
/// Empty to disable.
///
private const string JoystickScrollAction = "/actions/ui/in/JoystickScroll";
///
/// Touchpad input for 2D scrolling. True when a finger is touching the touchpad. bool type
/// Enables touch-pad style scrolling where moving your finger produces scrolling (not time-based).
/// Also set up TouchpadScrollPosition.
/// Empty to disable.
///
private const string TouchpadScrollTouch = "/actions/ui/in/TouchpadScrollTouch";
///
/// Touchpad input for 2D scrolling. Position on the touchpad. Vector2 type
/// Enables touch-pad style scrolling where moving your finger produces scrolling (not time-based).
/// Also set up TouchpadScrollTouch.
/// Empty to disable.
///
private const string TouchpadScrollPosition = "/actions/ui/in/TouchpadScrollPosition";
}
}
#endif