openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Proximity Sensor - query current state (polling)

Open kalmiya opened this issue 9 years ago • 1 comments

Using OpenVR 1.0.6, afaik it isn't possible to directly query the state of the proximity-sensor; you only get state-changes through VREvent_Button(Un)Press with k_EButton_ProximitySensor. This means that when starting your application, the "current state" isn't known (i.e. the user might - or might not - be wearing the headset - you don't know).

It would be great to be able to directly query the proximity-sensor-state for client-side initialization.

kalmiya avatar Mar 22 '17 17:03 kalmiya

Alternatively - if adding such a function to the OpenVR-interface isn't wanted - instead OpenVR could just send one event with Button(Un)Press state for the sensor immediately after initializing openVR, so on the first event/update-iteration we could get the initial state.

kalmiya avatar Mar 31 '17 14:03 kalmiya