#binding #bevy #bevy-plugin #inputmap #game-engine #mouse-button

bevy_input_mapper

Input binding has never been easier: a Bevy game engine plugin designed with stunning simplicity in mind

3 releases

0.0.3 Sep 29, 2023
0.0.2 Sep 26, 2023
0.0.1 Sep 8, 2023

#1297 in Game dev

Download history 6/week @ 2024-02-16 7/week @ 2024-02-23 1/week @ 2024-03-01 60/week @ 2024-03-29 15/week @ 2024-04-05

75 downloads per month

MIT license

28KB
377 lines

Bevy Input Mapper Plugin

Simplify Bevy game development with the user-friendly Bevy Input Mapper Plugin.

Keywords

  • Action: An action represents a user input trigger, such as firing a weapon, looking up, jumping, strafing, and more.

  • Input: Input encompasses any user-activated or pressable input, including mouse movement, mouse buttons, gamepad analog sticks, and etc.

  • Binding: Establish a direct connection between specific user input (e.g., pressing the space key, clicking the left mouse button, etc.) and a corresponding gameplay action (e.g., firing, jumping).

  • Scenario Profile: A scenario profile is used to manage distinct bindings required for various actions, such as walking, driving, or fighting. It allows for customized input configurations in different gameplay scenarios.

Features

  • Input Mapping
  • Load bindings from files
  • Supported Input Devices:
    • Gamepad
    • Keyboard
    • Mouse
  • Multiple scenario profiles

Installation & Usage

You can install the plugin via Cargo by adding it to your project's dependencies:

cargo add bevy_input_mapper

For practical examples and implementation details, refer to the examples directory in this repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Credits

This version of Bevy Input Mapper, merged after the refactoring branch, draws heavy inspiration from Kurinji.

Dependencies

~18–27MB
~410K SLoC