Implement OpenVR watcher
ErikBjare opened this issue · 5 comments
The current state of logging what is done is VR is horrible. RescueTime stops logging completely when mouse & keyboard input stops and since the window doesn't have to be in focus when in VR it likely wont in the short-medium term.
Should be easy enough, there are Python bindings here: https://pypi.python.org/pypi/openvr
The relevant part of the OpenVR API should be here: https://github.com/ValveSoftware/openvr/blob/e1507a27547d22a680153862865d40b90fad8c75/headers/openvr.h#L1364
It seems like the Python bindings for OpenVR aren't complete. May need to fork and extend.
Edit: My bad, the Python bindings for OpenVR seem very complete.
There also seems to be a useful event called SceneApplicationChanged: https://github.com/ValveSoftware/openvr/search?utf8=%E2%9C%93&q=VREvent_SceneApplicationChanged&type=Code
Would be cool to write this watcher in Rust.
There is both:
First we'd need a client library however.
I started something small here: https://github.com/ActivityWatch/aw-watcher-openvr
Closing this, any further discussion would be best done in the repo itself.