|
LMMS
|
#include <pugl.h>
Public Attributes | |
| PuglEventType | type |
| PUGL_TEXT | |
| PuglEventFlags | flags |
| Bitwise OR of PuglEventFlag values. | |
| double | time |
| Time in seconds. | |
| double | x |
| View-relative X coordinate. | |
| double | y |
| View-relative Y coordinate. | |
| double | xRoot |
| Root-relative X coordinate. | |
| double | yRoot |
| Root-relative Y coordinate. | |
| PuglMods | state |
| Bitwise OR of PuglMod flags. | |
| uint32_t | keycode |
| Raw key code. | |
| uint32_t | character |
| Unicode character code. | |
| char | string [8] |
| UTF-8 string. | |
Character input event.
This event represents text input, usually as the result of a key press. The text is given both as a Unicode character code and a UTF-8 string.
Note that this event is generated by the platform's input system, so there is not necessarily a direct correspondence between text events and physical key presses. For example, with some input methods a sequence of several key presses will generate a single character.
| uint32_t PuglTextEvent::character |
Unicode character code.
| PuglEventFlags PuglTextEvent::flags |
Bitwise OR of PuglEventFlag values.
| uint32_t PuglTextEvent::keycode |
Raw key code.
| char PuglTextEvent::string[8] |
UTF-8 string.
| double PuglTextEvent::time |
Time in seconds.
| PuglEventType PuglTextEvent::type |
| double PuglTextEvent::x |
View-relative X coordinate.
| double PuglTextEvent::xRoot |
Root-relative X coordinate.
| double PuglTextEvent::y |
View-relative Y coordinate.
| double PuglTextEvent::yRoot |
Root-relative Y coordinate.