DigitalExtinction/Game

Implement better input system

Indy2222 opened this issue · 1 comments

Currently user inputs (e.g. keyboard presses, mouse inputs) and resulting actions / commands are coupled. Many actions / commands are executed by systems whose run conditions are the specific inputs.

Change this by creating a generic input system. User inputs (mouse drags, moves, clicks, keyboard presses, etc.) result in events. These events are mapped to user commands.

This is a stepping stone for hotkey configuration.

Research how this is done in other games and other systems.

There is https://github.com/Leafwing-Studios/leafwing-input-manager which appears to address your needs.