Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johanhelsing/bevy_touch_stick
An analog touch screen joystick that pretends to be a bevy gamepad
https://github.com/johanhelsing/bevy_touch_stick
bevy gamedev input touch
Last synced: about 2 months ago
JSON representation
An analog touch screen joystick that pretends to be a bevy gamepad
- Host: GitHub
- URL: https://github.com/johanhelsing/bevy_touch_stick
- Owner: johanhelsing
- License: apache-2.0
- Created: 2023-11-02T16:47:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-23T10:30:40.000Z (10 months ago)
- Last Synced: 2024-04-25T09:02:21.433Z (8 months ago)
- Topics: bevy, gamedev, input, touch
- Language: Rust
- Homepage:
- Size: 320 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# `bevy_touch_stick`
Virtual touch screen analog joysticks for the [Bevy](https://bevyengine.org/)
game engine.## Goals
- [x] Support mouse and touch
- [x] Multiple joysticks on screen (for e.g. twin stick)
- [x] Emulate a regular bevy gamepad
- [x] Minimal dependencies (including features)
- [ ] Simple stupid implementation
- [ ] Modular rendering
- [ ] No asset dependenciesOnly two-axis sticks are supported.
If you need single-axis sticks, use [SergioRibera/virtual_joystick](https://github.com/SergioRibera/virtual_joystick) instead.
## Examples
- [`leafwing`](./examples/leafwing.rs) (recommended): Shows usage with [`leafwing-input-manager`](https://github.com/Leafwing-Studios/leafwing-input-manager)
- [`simple`](./examples/simple.rs)
- [`multiple`](./examples/multiple.rs)## Usage
Check out the [examples](./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 )
- Apache License, Version 2.0 (./LICENSE-APACHE or )at your option.
## Contributions
PRs welcome!
## Acknowledgements
`bevy_touch_stick` was forked from [`virtual_joystick`](https://github.com/SergioRibera/virtual_joystick)