Description
The TrackedDeviceRole.Stylus
field is a member of the TrackedDeviceRole
enumeration within the Sandbox.VR
namespace. It represents a stylus device in a virtual reality environment. This enumeration is used to identify the role or purpose of a tracked device within the VR system, allowing developers to handle input and interactions appropriately based on the device type.
Usage
Use the TrackedDeviceRole.Stylus
field when you need to identify or handle a stylus device in your VR application. This can be useful for applications that involve drawing, writing, or other interactions that require a stylus.
Example
// Example of using TrackedDeviceRole.Stylus
void HandleDeviceRole(TrackedDeviceRole role)
{
switch (role)
{
case TrackedDeviceRole.Stylus:
// Handle stylus-specific logic
break;
// Handle other roles
default:
break;
}
}