This code's old and dusty, and was developed for a narrow use case. If you are interested in using vJoy with Rust, I encourage you to use this repo only as a starting point for a proper library.
- src: Rust sources
- vjoy-headers: vJoy C header files
- original: original vJoy headers
- bindgen: vJoy headers modified to work with bindgen
To make src/vjoy_bindgen.rs
(do this if and only if that file doesn't already exist):
cd <repository root>
bindgen vjoy-headers/bindgen/vjoy.h -o src/vjoy_bindgen.rs
- Add lint attributes to
src/vjoy_bindgen.rs
:#![allow(dead_code)] #![allow(non_snake_case)] #![allow(non_camel_case_types)]
To build crate:
cd <repository root>
cargo build