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