nucular icon indicating copy to clipboard operation
nucular copied to clipboard

Glfw backend?

Open SuperGod opened this issue 3 years ago • 2 comments

It's a great project. But I can't input any Chinese in linux/x11.

I tried both the gio and shiny backend,but neither of them supports linux/x11 input method,so there is no way to input Chinese.

Glfw implements these functions, and projects such as Fyne and giu are also in use, so is it possible to add a glfw implementation?

If you can't add a glfw implementation, can you tell me how to add a new implementation? I am familiar with the go language, but I am not familiar with this project, so it is a little difficult for me to implement this

SuperGod avatar Jun 28 '22 11:06 SuperGod

The implementation of the backend is contained almost entirely in gio.go, for gio, and shiny.go for shiny. You would have to do something similar for glfw. AFAIK gio added support for input methods recently (or maybe is looking to add it).

I would first look into doing a small application using gio directly, to see if it is supported there already. If it is, then it could be just a matter of supporting a more recent version of gio which I plan to do eventually, when it's more stable.

Either way, development in this project is driven by my own personal needs. I do not fullfill feature requests unaccompained by a PR.

aarzilli avatar Jun 28 '22 11:06 aarzilli

OK, I will follow the latest updates of Gio

SuperGod avatar Jun 28 '22 12:06 SuperGod