Leafwing-Studios / leafwing-input-manager

A straightforward stateful input manager for the Bevy game engine.
Apache License 2.0
686 stars 106 forks source link

Share metadata across action types and only store a single Hashmap in ActionState #572

Closed alice-i-cecile closed 1 month ago

alice-i-cecile commented 1 month ago

Fixes #553.

Prompted by @cBournhonesque, this PR refactors the internals of ActionState: restoring the ActionData type, and moving shared data into that struct.