{"repo":"fornwall/gamepads","free":true,"listed":false,"github":"https://github.com/fornwall/gamepads","clone":"git clone https://github.com/fornwall/gamepads.git","description":"Rust gamepad input library with a focus on ease of use.","language":"Rust","stars":18,"topics":["gamedev","gamepad","input","rust","webassembly"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"gamepads Rust gamepad input library with a focus on ease of use. Supports haptic feedback (dual rumble / vibrations) on the web, and can be used as a macroquad plugin. See the crate documentation and the examples for documentation and sample code. What it is - On desktop this library is implemented on top of gilrs. - On web this is implemented on top of the Gamepad API exposed by browsers, including support for haptic feedback (aka \"dual rumble\" or \"force feedback\"). - It can be used in a wasm-bindgen -using project without any setup necessary. - It can be used without wasm-bindgen (by specifying default-features = false ), allowing it to be used as a macroquad plugin (see more below) or in a direct wasm build (example). How to use as a macroquad plugin For non-web targets, nothing special needs to be done to use this library with macroquad. But for a web build to work properly, two things needs to be done. First, since macroquad does not use wasm-bindgen , that feature in gamepads needs to be turned off by setting default-features = false : Second, a javascript plug-in (source) needs to be registered in the page embedding the built wasm file: See the gamepads-macroquad example. Feedback Please report any issues found or discuss questions and ideas!","default_branch":null,"files":null,"tree":[],"storefront":"/r/fornwall","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fornwall/gamepads/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}