Skip to content

Minor refactor to the input handler #15918

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

Closed
wants to merge 2 commits into from

Conversation

y5nw
Copy link
Contributor

@y5nw y5nw commented Mar 18, 2025

  • Goal of the PR
    This PR makes a minor refactor to the input handler to ease implementation for future PRs.
  • How does the PR work?
    • Implements std::hash<KeyPress>.
    • KeyList is dropped in favor of its STL-based counterpart (i.e. std::unordered_set).
  • Does it resolve any reported issue?
    No.
  • Does this relate to a goal in the roadmap?
    • 2.2 Internal code refactoring
  • If not a bug fix, why is this PR needed? What usecases does it solve?
    It eases the implementation for Allow keybindings with modifiers #14874 and Implement secondary keybindings #15577.

To do

This PR is Ready for Review.

How to test

Manual testing: make sure that keyboard input works.

@y5nw y5nw added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements @ Client / Controls / Input labels Mar 18, 2025
@y5nw y5nw mentioned this pull request Mar 18, 2025
10 tasks
@y5nw y5nw force-pushed the inputhandler-refactor branch from 7e487f3 to 6c2393c Compare March 18, 2025 19:42
@y5nw
Copy link
Contributor Author

y5nw commented Mar 18, 2025

Actually we can scratch this since this does not really make things easier.

@y5nw y5nw closed this Mar 18, 2025
@y5nw y5nw mentioned this pull request Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client / Controls / Input Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant