Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Is it possible to read the input when user calibrates the controller ?


Pepper
 Share

Recommended Posts

Is it possible to read the input when user calibrates the controller ?

We are trying to get user to calibrate the controller in multiple occasions. So to read when user does the calibration is important. Can we read this thourgh as an input function ? Much appreciate your help on this. 

Link to comment
Share on other sites

I have noticed a system button input with the latest sdk but not sure whether we can do this with unity. 

Tried with a sample app and it reads all inputs but not the system button. Much appreciate any support on this.

 

WVR_InputId_Alias1_System = WVR_InputId_0

Link to comment
Share on other sites

Perhaps this can help

 

using UnityEngine;using wvr;public class RecenterEvent : MonoBehaviour {    public GameObject gameObj;    private bool active;    void Start () {        WaveVR_Utils.Event.Listen(WVR_EventType.WVR_EventType_RecenterSuccess.ToString(), OnCalibration);    }    void OnCalibration(params object[] args) {        active = !active;        gameObj.SetActive(active);    }}

Check out Assets/Samples/Event_Test/Event_Test.cs, https://hub.vive.com/storage/app/doc/en-us/WaveVR_Utils.html and https://hub.vive.com/storage/app/doc/en-us/WVR_PollEventQuene.html for corresponding info

 

 

Link to comment
Share on other sites

Thanks a lot for your solution I will try this out. Didn't know that this was available. 

 

Do you know whether we can control the system button within our app ? I can get inputs for all other button inputs but not system button. When I pressd the system button from my app then the default system menu comes up. I just want to know whether there is any way to stop this.

 

WVR_InputId_Alias1_System = WVR_InputId_0

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...