struct DigitalInput

robot_2Generated
code_blocksInput

Description

The DigitalInput struct in the Sandbox.VR namespace represents a VR digital input action, such as a button press on a VR controller. This struct provides properties to determine the current and previous states of the input, as well as its accessibility.

Members

Properties

Member Name Summary
IsPressed The current value of this input - true if pressed, false if not pressed.
WasPressed The previous value of this input - true if it was pressed, false if it was not pressed.
Delta How much IsPressed has changed since the last update.
Active Whether or not this action is currently accessible (if false, then IsPressed will always be false and will never change).