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

Fix order of processing input contexts #1640

Merged
merged 3 commits into from
May 2, 2024

Conversation

heinezen
Copy link
Member

@heinezen heinezen commented Apr 21, 2024

Fixes the order in which input contexts are searched. The intended order was LIFO (like a stack) but the implemented order was FIFO (like a list).

This was a nice opportunity to use std::views::reverse from the ranges library in C++20 :D Disregard that because clang is too old :(

I also added a separate callback list for mouse move actions to the window because mixing them with mouse button actions can be annoying during debugging. This lead me to discover an error in the input demo where some keybindings were not properly assigned which is now also fixed.

@heinezen heinezen added improvement Enhancement of an existing component lang: c++ Done in C++ code bugfix Restores intended behavior area: input Related to our input system labels Apr 21, 2024
@heinezen heinezen force-pushed the fix/input-contexts-order branch 2 times, most recently from 7cfa962 to b6d3741 Compare April 21, 2024 17:09
@heinezen heinezen added the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 21, 2024
@SFTbot SFTbot removed the kevin-rebuild-pl0x instruct kevin to rebuild this pull request label Apr 21, 2024
@heinezen heinezen force-pushed the fix/input-contexts-order branch from b6d3741 to ecb41d2 Compare April 21, 2024 19:15
@heinezen heinezen force-pushed the fix/input-contexts-order branch 2 times, most recently from 33201fd to 02de382 Compare April 29, 2024 17:15
@heinezen heinezen force-pushed the fix/input-contexts-order branch from 02de382 to 51c8c4f Compare April 29, 2024 17:18
@TheJJ TheJJ merged commit b7ec91b into SFTtech:master May 2, 2024
13 checks passed
@heinezen heinezen deleted the fix/input-contexts-order branch September 7, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: input Related to our input system bugfix Restores intended behavior improvement Enhancement of an existing component lang: c++ Done in C++ code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants