MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / IsRoleAllowedAsHand

Function IsRoleAllowedAsHand

headers/openvr_driver.h:334–345  ·  view source on GitHub ↗

Returns true if the tracked controller role is allowed to be a hand */

Source from the content-addressed store, hash-verified

332
333/** Returns true if the tracked controller role is allowed to be a hand */
334inline bool IsRoleAllowedAsHand( ETrackedControllerRole eRole )
335{
336 switch ( eRole )
337 {
338 case TrackedControllerRole_Invalid:
339 case TrackedControllerRole_LeftHand:
340 case TrackedControllerRole_RightHand:
341 return true;
342 default:
343 return false;
344 }
345}
346
347
348/** describes a single pose for a tracked object */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected