Skip to content

Better input handling#249

Merged
unsecretised merged 2 commits intomasterfrom
better-input-handling
Mar 29, 2026
Merged

Better input handling#249
unsecretised merged 2 commits intomasterfrom
better-input-handling

Conversation

@unsecretised
Copy link
Copy Markdown
Collaborator

Fixes #161

Long overdue feature, but the way this works is it monitors all system modifier / keydown events, and then creates the Shortcut struct using keycodes

Then it proceeds to compare it in the update function (or retrieve it from the shell hotkey / command mapping in the hashmap stored in the Hotkeys struct)

But it now also allows people to use only keys / only modifiers to launch rustcast :)
I'm not sure how to do right command / left command filtering since NSEventModifierFlags doesn't have that option

@unsecretised unsecretised merged commit 11ef5ac into master Mar 29, 2026
5 checks passed
@unsecretised unsecretised deleted the better-input-handling branch March 29, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Add a proper awesomely flexible and powerful trigger key system

1 participant