robot_2Generated
code_blocksInput

Description

The Treadmill field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents a treadmill device in a virtual reality environment. This role is used to identify and manage input from a treadmill device, which can be used to simulate walking or running in VR applications.

Usage

Use the Treadmill field when you need to specify or check for a treadmill device role in your VR application. This can be useful for applications that support locomotion through physical movement on a treadmill.

Example

// Example of using TrackedDeviceRole.Treadmill

public void CheckDeviceRole(TrackedDeviceRole role)
{
    if (role == TrackedDeviceRole.Treadmill)
    {
        // Handle treadmill-specific logic
        EnableTreadmillMode();
    }
}

private void EnableTreadmillMode()
{
    // Logic to enable treadmill mode
}