-
Notifications
You must be signed in to change notification settings - Fork 164
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
Input event with origin #550
Conversation
fix many related tests
So this is actually more than just including a origin with each event. The main change is actually the Separation of InputEvent and InputConfig. Currently they are both very similar but it gives us much more flexibility as the InputConfig is no longer restricted by a single event or performance concerns. This can help if we ever choose to process the input on a per frame basis instead of a per event basis. I also renamed the EventCombination to InputCombination. |
I'll look at it soon |
A miroboard showing how all of our models and classes are related might be great at this point UIMapping, InputConfig, InputEvent, InputDevice, InputCombination |
ah, so InputConfig is for the mapping and describes the input for a mapping and InputEvent is for the EventHandler pipeline and describes an actual event that is happening right now? |
yeah, that is the idea. |
How about renaming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think splitting it into InputConfig and InputEvent makes sense
Co-authored-by: Tobi <to.213692@protonmail.ch>
Co-authored-by: Tobi <to.213692@protonmail.ch>
Thanks! Is this ready to merge? I would probably still rename Is there a tests that checks if the hash is calculated correctly? Testing that a given generated InputConfig contains the correct hash, which is provided as hardcoded string in the test with a comment explaining where it comes from. And to test that the correct device ends up in origin. |
I will rename As for this:
That is a bug which is present on beta since ever. I just never thought about it until this PR made it kind of obvious. |
fix #435
make sure forward_release forwards to the correct devicerelease_combination_keys
does not always forward to the correct device (beta) #577