Skip to content

IVRSystem::GetTrackedDeviceIndexForControllerRole doesn't work? #780

@zezba9000

Description

@zezba9000

When I call "GetTrackedDeviceIndexForControllerRole" for "TrackedControllerRole_LeftHand" it will always return "max uint" aka "(vr::TrackedDeviceIndex_t)(-1)".

"TrackedControllerRole_RightHand" is working correctly but didn't the first couple of times.

Am I hitting a bug or missing some other step?
I init the system like so: "vr::VR_Init(&error, vr::EVRApplicationType::VRApplication_Background);"

For now I'm forced to do the hack of force setting LeftHand to 3 and RightHand to 2.

Using OpenVR v1.0.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions