Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/
Other
9.35k stars 571 forks source link

nuklear_xcb: no text input #741

Closed beatwise closed 9 hours ago

beatwise commented 6 days ago

Demo's input boxes don't show any text when pressing keys:

xcb_key_symbols_get_keysym always returns 0. Probably, it's because kp->state is not a valid argument for its third parameter "col".

riri commented 6 days ago

Would you make a PR about this?

beatwise commented 5 days ago

I have no fix for this. It's pretty involved: https://github.com/iplinux/xcb-util/blob/master/keysyms/keysyms.c#L110

There's an easier way: libxkbcommon - https://xkbcommon.org/doc/current/md_doc_2quick-guide.html