A high-level binding for OpenVR 1.0.10.
High-level documentation can be found at the OpenVR wiki.
openvr-sys needs cmake and a C++ compiler so that it can compile and statically link the OpenVR client library.
Upstream OpenVR does not support MinGW. You must use an MSVC-targeted rust toolchain and C++ compiler.
extern crate openvr;
fn main() {
// Initialize OpenVR
let context = unsafe { openvr::init(openvr::ApplicationType::Scene) }.unwrap();
// accessing subsystems
let system = context.system().unwrap();
// ..
}
See examples/test.rs for a more detailed example.