-
Notifications
You must be signed in to change notification settings - Fork 2
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
Macros #30
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We would like to support macros, which turn one key event or key sequence into another. For example,
Ctrl
+Shift
+H
causes the key sequence forHello world
to be typed. One way to implement this would be to listen for the desired input sequence, and output an AFK event when it is detected. This AFK event could then be handled by the application to decide what should happen next. The app could use AFK HID helpers to generate the sequence of events forHello world
. If this API were to be built on the right layers and abstractions, an application developer may be able to code this scenario like the following.Set up a listener for the key sequence:
Handle the AFK event when a macro is triggered:
(This is pseudo code and the concept is open to modification.)
The text was updated successfully, but these errors were encountered: