gamepads
Gamepad input library in Rust.
Add the dependency as:
[]
= "0.1.1"
See the crate documentation and the hello-gamepads example for documentation and sample code.
What it is
- On desktop this is an abstraction on top of gilrs.
- On web this is a direct (not using
wasm-bindgen) implementation on top of the Gamepad API exposed by browsers.
On web, as a macroquad plugin
For non-web targets, nothing special needs to be done to use this library with macroquad.
For a web build to work properly, a small javascript plug-in needs to be registered in the page embedding the built wasm file:
See the hello-gamepads example.
Feedback
Please report any issues found or discuss questions and ideas!