2 unstable releases
| 0.2.0 | Feb 23, 2024 |
|---|---|
| 0.1.0 | Feb 23, 2024 |
#2796 in Game dev
56KB
481 lines
bevy_touch_stick
Virtual touch screen analog joysticks for the Bevy game engine.
Goals
- Support mouse and touch
- Multiple joysticks on screen (for e.g. twin stick)
- Emulate a regular bevy gamepad
- Minimal dependencies (including features)
- Simple stupid implementation
- Modular rendering
- No asset dependencies
Only two-axis sticks are supported.
If you need single-axis sticks, use SergioRibera/virtual_joystick instead.
Examples
leafwing(recommended): Shows usage withleafwing-input-managersimplemultiple
Usage
Check out the examples.
Bevy Version Support
The main branch targets the latest bevy release.
| bevy | bevy_touch_stick |
|---|---|
| 0.13 | 0.2, main |
| 0.12 | 0.1 |
License
bevy_touch_stick is dual-licensed under either
- MIT License (./LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Contributions
PRs welcome!
Acknowledgements
bevy_touch_stick was forked from virtual_joystick
Dependencies
~50–94MB
~1.5M SLoC