Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoGo Pins clicks not detected #484

Closed
MahmoudAshraf-CIS opened this issue Jul 17, 2019 · 3 comments
Closed

PoGo Pins clicks not detected #484

MahmoudAshraf-CIS opened this issue Jul 17, 2019 · 3 comments

Comments

@MahmoudAshraf-CIS
Copy link

MahmoudAshraf-CIS commented Jul 17, 2019

is it supported to use the Vive Trackers PoGo pins ? and if so how to get the PoGo pins clicks ?

image
the developers guide for the trackers link

i tried a new project in unity 2018.3.8f1 and got imported the SteamVR Plugin and ViveInputUtility

notice the trackers are detected and tracked in the Game play, but the clicks of the tracker pins are not detected

here is my hierarchy that rely on ViveInputUtility
and the TrackerClickHandler is just a script with functions to log messages

when i used ViveInputUtility simulator the logs are called but using the physical devices does not


i also tried downgrading to an older version of steamVR plugin (dupricated) see this Tutorial and used the following script to get the inputs

    using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;

public class Tracker : MonoBehaviour
{
    SteamVR_TrackedObject trackedObject;

    public bool trigger, trackpad, grip, menu;

    // Start is called before the first frame update
    void Start()
    {
        trackedObject = GetComponent<SteamVR_TrackedObject>();        
    }
    private void Update()
    {
        var device = SteamVR_Controller.Input((int)trackedObject.index);

        trigger = device.GetPress(Valve.VR.EVRButtonId.k_EButton_SteamVR_Trigger);
        if (trigger)
            Debug.Log("trigger");
        trackpad = device.GetPress(Valve.VR.EVRButtonId.k_EButton_SteamVR_Touchpad);
        if (trackpad)
            Debug.Log("trackpad");
        grip = device.GetPress(Valve.VR.EVRButtonId.k_EButton_Grip);
        if (grip)
            Debug.Log("grip");
        menu = device.GetPress(Valve.VR.EVRButtonId.k_EButton_ApplicationMenu);
        if (menu)
            Debug.Log("menu");
    }
}

and also got the 4 bools always false

Thanks in advance

@bc
Copy link

bc commented Aug 6, 2019

I'm also interested in using POGO pins w SteamVR 2.2+

@nocanwin
Copy link

see issue #152

@zite
Copy link
Collaborator

zite commented Jun 28, 2021

Closing as duplicate

@zite zite closed this as completed Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants