robot_2Generated
code_blocksInput

Description

The TrackedDeviceRole.Keyboard field is a member of the TrackedDeviceRole enumeration within the Sandbox.VR namespace. It represents a keyboard device in a virtual reality environment. This enumeration is used to identify the role of various tracked devices in VR applications, allowing developers to handle input and interactions appropriately based on the device type.

Usage

Use the TrackedDeviceRole.Keyboard field when you need to specify or check if a tracked device is a keyboard within your VR application. This can be useful for handling input events or configuring device-specific settings.

Example

// Example of using TrackedDeviceRole.Keyboard

void HandleDeviceRole(TrackedDeviceRole role)
{
    if (role == TrackedDeviceRole.Keyboard)
    {
        // Handle keyboard-specific logic
        // For example, enable text input mode
    }
}