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

Add a way to support input combos #2

Open
Apostolique opened this issue Sep 21, 2019 · 0 comments
Open

Add a way to support input combos #2

Apostolique opened this issue Sep 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Apostolique
Copy link
Owner

Apostolique commented Sep 21, 2019

It would be nice to have a built-in way to support combos.

For example press A then B to trigger an action. Perhaps with a timeout option before it's too late to press B.

Ideally, the combo would happen behind the scene and the API could look like this:

var A = new KeyboardCondition(Keys.A);
var B = new KeyboardCondition(Keys.B);

var combo = new ComboCondition(A, B);
combo.Timeout(100);

if (combo.Triggered()) {
   // Do action.
}
@Apostolique Apostolique added the enhancement New feature or request label Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant