5 unstable releases

Uses old Rust 2015

0.6.0 Jul 10, 2019
0.5.2 Mar 20, 2018
0.5.1 Oct 9, 2017
0.5.0 Oct 9, 2017
0.1.1 Apr 19, 2016

#1079 in Hardware support

Download history 37/week @ 2024-07-22 23/week @ 2024-07-29 21/week @ 2024-08-05 33/week @ 2024-08-12 13/week @ 2024-08-19 15/week @ 2024-08-26 24/week @ 2024-09-02 12/week @ 2024-09-09 30/week @ 2024-09-16 40/week @ 2024-09-23 39/week @ 2024-09-30 20/week @ 2024-10-14 14/week @ 2024-10-21 27/week @ 2024-10-28 27/week @ 2024-11-04

88 downloads per month

MIT license

115KB
2K SLoC

rust-openvr

Build Status Join the chat at https://gitter.im/rust-openvr/rust-openvr

High-level bindings for OpenVR.

API documentation

C/C++ API documentation for reference purposes.

Requirements

openvr-sys requires CMake and C++ to compile and statically link the OpenVR library.

Imporant: OpenVR does not support MinGW on Windows, i.e., you have to use the MSVC Rust toolchain and C++ compiler.

Initializing

extern crate openvr;

fn main() {
    // Initialize OpenVR.
    let context = unsafe { openvr::init(openvr::ApplicationType::Scene) }.unwrap();

    // Access subsystem.
    let system = context.system().unwrap();

    // See examples/test.rs for a more detailed example.
}

Dependencies

~1–1.2MB
~33K SLoC