-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Repeating keys #127
Comments
Looks like in inputmanager.c 'send_keycode', The key up event is sent immediately after the key down event. |
I did another test using the android app 'KeyEvent display" with scrcpy and bluetooth keyboard Scrcopy sends repeated up / down for holding down alpha key. |
Thank you for your report and your investigations. You're right, this is probably the cause of the problem. However, this is not easy to solve: up and down are related to key events, but text input must be handled via text input events (handle text input). So either we handle text correctly according to the keyboard layout, either we handle up and down key events for characters keys, but then the layout will not match. I don't know how to get both. |
Would it be easier to have the user switch between modes? .. ie, press Ctrl G to enter 'game' mode. Press again to use text mode. |
When holding down an alphabet key, multiple key down / key up events are sent. (Undesired action..)
When holding down the "Arrow" keys, key up is not sent until the key is released. (Desired action for all keys.. )
I am using the app "KeyEvent Display" to display key events.
The text was updated successfully, but these errors were encountered: