9 releases (stable)
Uses old Rust 2015
2.0.3 | Jun 29, 2019 |
---|---|
2.0.2 | Aug 25, 2018 |
2.0.1 | Dec 22, 2017 |
2.0.0 | Oct 8, 2017 |
0.1.2 | May 11, 2016 |
#875 in Hardware support
126 downloads per month
Used in openvr
1MB
25K
SLoC
openvr-sys
Contains function definitions for the OpenVR library. Use the openvr
crate, unless you know what you are doing.
Instructions for updating OpenVR
git submodule update --init --recursive
(initial checkout only)git submodule foreach git pull origin master
to update the submodulecargo build --features "buildtime_bindgen"
to update the bindings- Apply the workaround for broken OpenVR ABIs, if required
Workaround for broken OpenVR ABIs (Linux/macOS only)
Search for packed structs in headers/openvr.h
, i.e., #pragma pack( push, 4 )
. Currently, that is:
VRControllerState_t
RenderModel_TextureMap_t
RenderModel_t
VREvent_t
Depending on what bindgen did parse, you have to replace a bunch of #[repr(C)]
and #[repr(C, packed(4))]
precending those structs in bindings.rs
with:
#[repr(C)]
#[cfg_attr(unix, repr(packed(4)))]