| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | value | :: | viewer |
viewer handle (vkf_viewer_create) |
||
| integer(kind=c_int), | value | :: | pressed |
1 for a press, 0 for a release |
||
| integer(kind=c_int), | value | :: | symbol |
the key's base symbol (unmodified) |
||
| integer(kind=c_int), | value | :: | modified_symbol |
the key's symbol with the modifiers applied ('V' with shift) |
||
| integer(kind=c_int), | value | :: | modifier |
the modifier keys held (vsg::KeyModifier mask) |
A key press or release from the host's window, as VSG key symbols and modifiers (vsg/ui/KeyEvent.h: ASCII for printable keys, X11-style codes otherwise). Returns 0, or -1 on failure.