Jump to content

SolidJuho

Verified Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by SolidJuho

  1.  

    Hello,
    I am using  HTC Vive Trackers, VIU 1.12.2, SteamVR 2.7.4.

    I am trying to get data when trigger is pressed by connecting pin 1 to pin 4, but I am not getting logs.
    It is working and logging data for all other pins correctly, only pin 4/trigger is one not working.

    I have tested and checked that all pins are working correctly in SteamVR test mode.

    This is my current code to log all tracker data for debug purposes only:

                foreach (TrackerRole track in Enum.GetValues(typeof(TrackerRole)))
                {
                    foreach (ControllerButton item in Enum.GetValues(typeof(ControllerButton)))
                    {
                        if (ViveInput.GetAnyPress(track, new ControllerButtonMask(item)))
                        {
                            Debug.Log("GetPress: " + track.ToString()+" " + item.ToString());
                        }
                    }
    
                    foreach (ControllerAxis item in Enum.GetValues(typeof(ControllerAxis)))
                    {
                        if (ViveInput.GetAxisEx(track, item) > 0.5f)
                        {
                            Debug.Log("GetAxis: " + track.ToString() + " " + item.ToString());
                        }
                    }
                    
                    if (ViveInput.GetTriggerValueEx(track) > 0.5f)
                    {
                        Debug.Log("GetTrigger: " + track.ToString());
                    }               
                }
×
×
  • Create New...