Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Add support for unicode characters/text #61

Open
elgopher opened this issue Jan 12, 2020 · 0 comments
Open

Add support for unicode characters/text #61

elgopher opened this issue Jan 12, 2020 · 0 comments
Labels
help wanted Extra attention is needed thinking Thinking

Comments

@elgopher
Copy link
Owner

At the moment keyboard package can be used for checking the state of the keyboard. This is enough for most games. But some games have text input fields and support entering diacritic characters. They take also into the consideration the layout of the keyboard.

The API might be a new package which will provide some kind of buffer:

text := textinput.New(window)
text.Update()    // standard Update() method executed each frame
text.Text()         // text entered so far in UTF-8 (normal Go string)
text.Clear()       // clear the buffer 
@elgopher elgopher added thinking Thinking help wanted Extra attention is needed labels Jan 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed thinking Thinking
Projects
None yet
Development

No branches or pull requests

1 participant