Skip to content

A Rusty interface to vJoy, a virtual joystick driver.

License

Notifications You must be signed in to change notification settings

PumpMagic/vjoy-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heads Up!

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.

Directory Tree

  • src: Rust sources
  • vjoy-headers: vJoy C header files
    • original: original vJoy headers
    • bindgen: vJoy headers modified to work with bindgen

Building

To make src/vjoy_bindgen.rs (do this if and only if that file doesn't already exist):

  1. cd <repository root>
  2. bindgen vjoy-headers/bindgen/vjoy.h -o src/vjoy_bindgen.rs
  3. Add lint attributes to src/vjoy_bindgen.rs:
    #![allow(dead_code)]
    #![allow(non_snake_case)]
    #![allow(non_camel_case_types)]

To build crate:

  1. cd <repository root>
  2. cargo build

About

A Rusty interface to vJoy, a virtual joystick driver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published