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

ClashStrategy management across multiple instances of InputMap #617

Open
pianonate opened this issue Aug 27, 2024 · 1 comment
Open

ClashStrategy management across multiple instances of InputMap #617

pianonate opened this issue Aug 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pianonate
Copy link

What problem does this solve?

The ability to resolve input clashes when there are multiple InputMap instances defined and the clash occurs across distinct InputMap. My use of LIM involves using separate InputMap instances for my camera, my spaceship, and global commands. It is possible to have a clash across InputMap instances and the current ClashStrategy doesn't handle this scenario.

What do you want to do?
Avoid having multiple actions trigger when I only want a single action to trigger - typically for the longest ButtonlikeChord where the overlap of buttons occurs across multiple InputMap instances in my game.

What solution would you like?

I think an ideal solution is I don't do anything and there is a default that handles clashes across all input maps. Of course the default could be overridden if you truly want to have clashes occur across input maps. Second best would be to register each InputMap with a ClashStrategyHandler of some sort.

What alternatives have you considered?

Using a single InputMap for the entire game - pretty much what you have to do right now. This is inadequate for me as I want to be able to manage my controls for each aspect of my game independently. It's more ergonomic (for me) to locate my camera controls with my camera code, and my spaceship controls with my spaceship code (as an example).

Related work

I haven't see anything related although i haven't read every issue :)

@pianonate pianonate added the enhancement New feature or request label Aug 27, 2024
@alice-i-cecile
Copy link
Contributor

Thanks for writing this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants