Home » U++ Library support » U++ Library : Other (not classified elsewhere) » [PATCH] SDL2GUI (virtualgui) key handling improvements.
[PATCH] SDL2GUI (virtualgui) key handling improvements. [message #57135] |
Sat, 29 May 2021 12:13 |
Oblivion
Messages: 1143 Registered: August 2007
|
Senior Contributor |
|
|
Hi,
Sdl2Gui works but the key handling has some problems:
1) Unicode characters are sent as characters twice (e.g.'ş' character (s with cedilla) will be printed as 'şş'), because fbKEYtoK function does not shift (+K_DELTA) the characters that are not in the key map. (In keydown/up events)
2) Backspace is not handled correctly.
3) Numpad "Enter" key is not implemented.
4) Cosmetics issue: The keymap is somewhat awkward. It has the value-key order instead of key-value order.
5) tab, return and space characters are handled in the fbKEYtoK function, not via the map. (What is the rationale for this behavior?)
This patch aims to "fix" these issues.
Note on 4: I reversed the order of map, and moved it to a VectorMap.
Please review.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 29 May 2021 15:09] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Dec 13 22:16:09 CET 2024
Total time taken to generate the page: 0.02942 seconds
|