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

how should 'a + b > c + d' work ? #48

Closed
k2s opened this issue Dec 28, 2012 · 1 comment
Closed

how should 'a + b > c + d' work ? #48

k2s opened this issue Dec 28, 2012 · 1 comment
Labels
Question Issues that are questions about the library.

Comments

@k2s
Copy link

k2s commented Dec 28, 2012

'a + b > c + d' - binds to the 'a', 'b', 'c' and 'd' keys. Pressing both the 'a' key and the 'b' key, then both the 'c' and the 'd' key will match this keyCombo.

does it mean I have to press and keep pressed all keys to fire the event ?
is there a way to press a+b ... all keys up ... press c+d to fire the event ?

@RobertWHurst
Copy link
Owner

It means the a and b keys must be pressed and held, then the c and d keys must also be pressed. They can be released in any order. As for pressing one key releasing it and then pressing another, this is something that you should be able to do yourself. You just need to keep track of which keys have been pressed with an array. As soon as an incorrect key is pressed then empty your array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Issues that are questions about the library.
Projects
None yet
Development

No branches or pull requests

2 participants