Bindings for OpenVR and the Valve/HTC Vive
These are preliminary but working quite smoothly.
See https://github.com/lukexi/openvr-hs/blob/master/app/Main.hs for basic example usage.
The example has optional hooks for Halive so you can make live edits to your code.
You'll need a few dependencies until I release the bindings on Hackage:
git clone --recursive [email protected]:lukexi/openvr-hs.git
git clone [email protected]:lukexi/glfw-pal.git
git clone [email protected]:lukexi/gl-pal.git
git clone [email protected]:lukexi/linear-extra.git
git clone [email protected]:lukexi/lens-extra.git
git clone [email protected]:lukexi/halive.git
Run the demo with stack test :cubes
or cabal test cubes
.
The build system expects a 64bit MSYS2 installation.
You must use GHC 7.10.3 or greater.
Feel free to contact me via the issues tab or @lukexi if you need any help getting set up.