Description
The TrackedDeviceType.Controller
field represents tracked controllers in a virtual reality environment. This field is part of the TrackedDeviceType
enumeration, which categorizes different types of VR devices that can be tracked within the Sandbox VR framework.
Usage
Use the TrackedDeviceType.Controller
field when you need to identify or handle VR controllers specifically. This can be useful in scenarios where you need to differentiate between various tracked devices, such as head-mounted displays, trackers, or base stations.
Example
// Example of using TrackedDeviceType.Controller
void HandleTrackedDevice(TrackedDeviceType deviceType)
{
switch (deviceType)
{
case TrackedDeviceType.Controller:
// Handle controller-specific logic
break;
case TrackedDeviceType.Hmd:
// Handle HMD-specific logic
break;
case TrackedDeviceType.Tracker:
// Handle tracker-specific logic
break;
case TrackedDeviceType.BaseStation:
// Handle base station-specific logic
break;
default:
// Handle other cases
break;
}
}