book_4_sparkGenerated
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 for a keyboard device in your VR application. This can be useful for handling input events or configuring device-specific settings.

Example

// Example of using TrackedDeviceRole.Keyboard

void HandleDeviceInput(TrackedDeviceRole deviceRole)
{
    if (deviceRole == TrackedDeviceRole.Keyboard)
    {
        // Handle keyboard-specific input
        // For example, capture key presses or configure keyboard settings
    }
}