Skip to content
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

X11 support for mfb_set_char_input_callback #69

Closed
wants to merge 1 commit into from
Closed

X11 support for mfb_set_char_input_callback #69

wants to merge 1 commit into from

Conversation

enjector
Copy link
Contributor

@enjector enjector commented Dec 14, 2021

Char input events weren't being generated under X11. This extracts the character code from the event and calls the callback specified by mfb_set_char_input_callback(...)

@Darky-Lucera
Copy link
Collaborator

Finally, I figure out how it works and I have changed the code to be able to get Unicode characters like ñ, ç, á, è, î, ... but for now it only works correctly on MacOS X and Windows. There is some support for X11 but it seems that X11 libs are older than Unicode, so it is a bit difficult to do it.

I tried this: http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML015/0422.html but it does not work with compound characters

For Linux, I guess that we need to invest more time in this: https://xkbcommon.org/
xkb_state_key_get_utf32() seems to be the way to do it

@enjector enjector deleted the x11_char_input branch December 22, 2021 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants