Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Allow configuration of combinations and/or long-presses #98

Open
tcdude opened this issue Jun 25, 2023 · 0 comments
Open

Allow configuration of combinations and/or long-presses #98

tcdude opened this issue Jun 25, 2023 · 0 comments

Comments

@tcdude
Copy link

tcdude commented Jun 25, 2023

From what I can tell, the configuration currently only allows to assign single, short presses of buttons. Special events such as long-presses and/or pressing multiple buttons at the same time are hard coded and are not directly user configurable.

I would propose enhancing the config file and parsing as follows:

  • Instead of looking for hard coded keys (i.e. button1, button2, ...), maybe loop through the available keys and evaluate the key
  • To enable combinations, keys could be a series of buttons concatenated with the symbol +
  • A prefix could be defined to indicate that the button or button combination that follows only applies for long pressing that combination
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant