Skip to content

lightsoutgames/bevy_input_actionmap

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
April 26, 2022 09:36
src
July 11, 2022 12:50
January 20, 2022 14:13
April 26, 2022 09:33
April 15, 2021 12:47
March 9, 2021 10:45

bevy_input_actionmap

Maps key and gamepad events to actions in Bevy. See the example for usage.

I'll be the first to admit that this crate needs some polish. Things it seems to do right:

  • Binds string actions to single or multiple keycodes, gamepad buttons, or stick motions. Not sure that cross-input gestures work (I.e. gamepad buttons and keys).
  • Binds the same action to multiple distinct input types. The same action can be bound to a key, gamepad button, etc.
  • Resolves key/button conflicts. Binding actions to Enter, Ctrl-Enter and Ctrl-Alt-Enter only runs a single action if Ctrl-Alt-Enter is pressed.

Things that don't work and that I'd appreciate help with:

  • Mouse gestures. PRs welcome.
  • Serialization of keybindings. PRs welcome.
  • Probably a million other things. PRs welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages