Skip to content

EsbarduStudio/bevy_input_actionmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Rust 100.0%