VRInput VR { get; set; }

robot_2Generated
code_blocksInput

Description

The VR property provides access to Virtual Reality specific input data within the Sandbox environment. This property is part of the Sandbox.Input class, which is responsible for handling various input mechanisms, including VR inputs.

Usage

Use the VR property to access VR input data when developing applications or games that support Virtual Reality. This property is static and can be accessed directly through the Input class without needing to instantiate an object.

Example

// Example of accessing VR input data
var vrInputData = Input.VR;

// Use vrInputData to handle VR-specific input logic
if (vrInputData.IsButtonPressed(VRButton.Trigger))
{
    // Handle trigger button press
}