Stick

Platform-agnostic asynchronous gamepad, joystick and flightstick library

tests Docs crates.io

Stick supports getting controller input from a large variety of gamepads, joysticks, flightsticks, and other controllers. Stick also supports left/right rumble haptic effects.

Why Does Stick Exist?

The main reason is that I hadn't heard of gilrs when I started stick back in 2017 when gilrs was only a year old and had less than 500 all-time downloads. Now, I think there are many other reasons for stick to exist despite gilrs:

Platform Support

Planned Platform Support

Table of Contents

API

API documentation can be found on docs.rs.

Features

You may enable the following features - sdb: Enabled by default, the Stick database controller remappings - gcdb: The SDL game controller database remappings

Upgrade

You can use the changelog to facilitate upgrading this crate as a dependency.

License

Licensed under any of - Apache License, Version 2.0, (LICENSEAPACHE20.txt or https://www.apache.org/licenses/LICENSE-2.0) - MIT License, (LICENSEMIT.txt or https://mit-license.org/) - Boost Software License, Version 1.0, (LICENSEBOOST10.txt or https://www.boost.org/LICENSE1_0.txt)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as described above, without any additional terms or conditions.

Help

If you want help using or contributing to this library, feel free to send me an email at aldaronlau@gmail.com.