API ReferenceSandbox.VR

DigitalInputclass

Represents a VR digital input action (e.g. X button)

objectDigitalInput
Namespace
Sandbox.VR
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.VR.DigitalInput

Properties4

Showing 4 properties

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

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

Returns:bool

public bool Sandbox.VR.DigitalInput.Delta { get; set; }PUBLICGETSET

How much `Sandbox.VR.DigitalInput.IsPressed` has changed since the last update.

Returns:bool

public bool Sandbox.VR.DigitalInput.IsPressed { get; set; }PUBLICGETSET

The current value of this input - true if pressed, false if not pressed.

Returns:bool

public bool Sandbox.VR.DigitalInput.WasPressed { get; set; }PUBLICGETSET

The previous value of this input - true if it was pressed, false if it was not pressed.

Returns:bool

On this page