struct DigitalInput

book_4_sparkGenerated
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. It provides properties to determine the current and previous states of the input, as well as its activity status.

Members

Properties

Member NameSummary
IsPressedThe current value of this input - true if pressed, false if not pressed.
WasPressedThe previous value of this input - true if it was pressed, false if it was not pressed.
DeltaHow much IsPressed has changed since the last update.
ActiveWhether or not this action is currently accessible (if false, then IsPressed will always be false and will never change).