U++ framework
Do not panic. Ask here before giving up.

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 Go to next message
Oblivion is currently offline  Oblivion
Messages: 1266
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


[Updated on: Sat, 29 May 2021 15:09]

Report message to a moderator

Re: [PATCH] SDL2GUI (virtualgui) key handling improvements. [message #57230 is a reply to message #57135] Sun, 13 June 2021 15:00 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
OK, applied, thanks.
Previous Topic: How do I scroll multiple GLCtrls without screen tearing?
Next Topic: Exclamation("") and ESCAPE key
Goto Forum:
  


Current Time: Wed May 06 21:14:34 GMT+2 2026

Total time taken to generate the page: 0.00536 seconds