ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
172 stars 81 forks source link

Are there any ways to force-feedback gamepad? #56

Closed TheRadioGuy closed 4 years ago

lnicola commented 4 years ago

That might be possible, but you'd be served better by a crate like https://crates.io/crates/gilrs.

TheRadioGuy commented 4 years ago

GilRS supports only XInput gamepads

ruabmbua commented 4 years ago

In theory yes, as long as the gamepad is using hid to communicate with the host. There is no generic way to do it with all gamepads. You should try to use the OS API`s for gamepads.

Linux -> evdev, joydev WIndows -> XInput, DirectInput

TheRadioGuy commented 4 years ago

Got it, thanks