Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement better input system #648

Open
Indy2222 opened this issue Jul 25, 2023 · 1 comment
Open

Implement better input system #648

Indy2222 opened this issue Jul 25, 2023 · 1 comment

Comments

@Indy2222
Copy link
Collaborator

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.

@0HyperCube
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants