diff options
author | David Robillard <d@drobilla.net> | 2019-07-20 11:19:02 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-24 01:02:52 +0200 |
commit | 3526bf913402b4061fd19b2f77b9f1dd1a60b2a5 (patch) | |
tree | 84dba6491f1832c9a29e0bae43daa926f43244cd /pugl/pugl.hpp | |
parent | 1deb98f57f7b597be941fd944a91f2daa1a1f10a (diff) | |
download | pugl-3526bf913402b4061fd19b2f77b9f1dd1a60b2a5.tar.gz pugl-3526bf913402b4061fd19b2f77b9f1dd1a60b2a5.tar.bz2 pugl-3526bf913402b4061fd19b2f77b9f1dd1a60b2a5.zip |
Unify key and character fields and separate text events
Only one field is necessary to store any kind of key, including special keys,
since PuglKey occupies a reserved Unicode region. This is generally much
simpler to deal with since there is only one value to dispatch on.
Text events are separated from key events (like Windows but unlike MacOS or
X11) because it is not possible to derive text events from key press events
when they occur on Windows. Since merging the two has been the source of some
confusion, this approach has some advantages anyway, even though it introduces
the need to handle another event type.
In the process, text input has been almost completely rewritten. I have tested
this with a compose key on X11 and dead keys on Windows and MacOS and
everything seems to work correctly, though there may (as always) still be
issues with more exotic input methods.
Diffstat (limited to 'pugl/pugl.hpp')
0 files changed, 0 insertions, 0 deletions