mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Documentation work
This commit is contained in:
parent
67c9155f3b
commit
d3247a8c83
@ -181,12 +181,10 @@ GLFW supports text input in the form of a stream of
|
|||||||
operating system text input system. Unlike key input, text input obeys keyboard
|
operating system text input system. Unlike key input, text input obeys keyboard
|
||||||
layouts and modifier keys and supports composing characters using
|
layouts and modifier keys and supports composing characters using
|
||||||
[dead keys](https://en.wikipedia.org/wiki/Dead_key). Once received, you can
|
[dead keys](https://en.wikipedia.org/wiki/Dead_key). Once received, you can
|
||||||
encode the code points into
|
encode the code points into UTF-8 or any other encoding you prefer.
|
||||||
[UTF-8](https://en.wikipedia.org/wiki/UTF-8) or any other encoding you prefer.
|
|
||||||
|
|
||||||
Because an `unsigned int` is 32 bits long on all platforms supported by GLFW,
|
Because an `unsigned int` is 32 bits long on all platforms supported by GLFW,
|
||||||
you can treat the code point argument as native endian
|
you can treat the code point argument as native endian UTF-32.
|
||||||
[UTF-32](https://en.wikipedia.org/wiki/UTF-32).
|
|
||||||
|
|
||||||
There are two callbacks for receiving Unicode code points. If you wish to
|
There are two callbacks for receiving Unicode code points. If you wish to
|
||||||
offer regular text input, set a character callback.
|
offer regular text input, set a character callback.
|
||||||
|
Loading…
Reference in New Issue
Block a user