API ReferenceSandbox.VR

AnalogInputclass

Represents a VR analog input action (e.g. trigger)

objectAnalogInput
Namespace
Sandbox.VR
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.VR.AnalogInput

Properties3

Showing 3 properties

public bool Sandbox.VR.AnalogInput.Active { get; set; }PUBLICGETSET

Whether or not this action is currently accessible (if false, then `Sandbox.VR.AnalogInput.Value` will always be 0 and will never change).

Returns:bool

public float Sandbox.VR.AnalogInput.Delta { get; set; }PUBLICGETSET

How much `Sandbox.VR.AnalogInput.Value` has changed since the last update, from 0 to 1.

Returns:float

public float Sandbox.VR.AnalogInput.Value { get; set; }PUBLICGETSET

The current value of this input, from 0 to 1.

Returns:float

On this page