book_4_sparkGenerated
code_blocksInput

Description

The TrackedDeviceRole.LeftWrist field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents the role of a tracked device that is associated with the left wrist in a virtual reality environment. This can be used to identify and manage input or tracking data specific to the left wrist device.

Usage

Use TrackedDeviceRole.LeftWrist when you need to specify or check the role of a device that is intended to be used on the left wrist. This is particularly useful in VR applications where precise tracking of body parts is necessary for interaction and immersion.

Example

// Example of using TrackedDeviceRole.LeftWrist

void CheckDeviceRole(TrackedDeviceRole role)
{
    if (role == TrackedDeviceRole.LeftWrist)
    {
        // Handle left wrist specific logic
        // For example, update the position of a virtual watch
    }
}