You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
My idea is that after pressing the specified key, KeyPressed should only be executed once without releasing the key, instead of continuously executing nativeKeyPressed in a loop while the key is held down. How can I improve this?
The text was updated successfully, but these errors were encountered:
It's called key bounce and it was an internal design feature. The rate at which the key bounces should be the value of the `jnativehook.key.repeat.rate` property and the delay until the bounce starts is the `jnativehook.key.repeat.delay`. If
you don't want or need the repeat, set a flag where you are listening for events and ignore the subsequent key press events. What type of flag depends on how you want the ignore to work.
It's called key bounce and it was an internal design feature. The rate at which the key bounces should be the value of the jnativehook.key.repeat.rate property and the delay until the bounce starts is the jnativehook.key.repeat.delay. If you don't want or need the repeat, set a flag where you are listening for events and ignore the subsequent key press events. What type of flag depends on how you want the ignore to work.
Hello.
My idea is that after pressing the specified key, KeyPressed should only be executed once without releasing the key, instead of continuously executing nativeKeyPressed in a loop while the key is held down. How can I improve this?
The text was updated successfully, but these errors were encountered: