ardaku / stick

Rust library for platform-agnostic asynchronous gamepad, joystick, and flightstick interaction
https://crates.io/crates/stick
Apache License 2.0
76 stars 14 forks source link

Thrustmaster Warthog support #8

Closed theunkn0wn1 closed 4 years ago

theunkn0wn1 commented 4 years ago

Describe the bug Ran the example code provided on the docs' homepage, and plugged my Warthog into the machine.

Connected p1, id: 44F0404, name: Thrustmaster Throttle - HOTAS Warthog
[/home/orion/.cargo/registry/src/github.com-1ecc6299db9ec823/stick-0.9.0/src/ffi/linux.rs:560] id = 422
Button 422 is Unknown, report at https://github.com/libcala/stick/issues
[/home/orion/.cargo/registry/src/github.com-1ecc6299db9ec823/stick-0.9.0/src/ffi/linux.rs:560] id = 422
Button 422 is Unknown, report at https://github.com/libcala/stick/issues
^C

The above spams the STDOUT.

To Reproduce Steps to reproduce the behavior:

  1. cargo init rustpad
  2. cd rustpad
  3. cargo add stick pasts
  4. copy example program into src/main.rs
  5. cargo run Expected behavior

Expected Connected p1, id: 44F0404, name: Thrustmaster Throttle - HOTAS Warthog and for the program to read joystick events, not spew errors over STDOUT.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

   Compiling smelling_salts v0.1.0
   Compiling pasts v0.4.0
   Compiling stick v0.9.0
   Compiling rustpad v0.1.0 (/home/orion/projects/skool/rover/movement/rustpad/rustpad)