WwGetKey Function
Obtains the ASCII value of a pressed or released key passed as an event structure by a PV‑WAVE Widgets event handler.
Usage
key = WwGetKey(event)
Input Parameters
event — The event handle received by the event handler.
Returned Value
key — A string containing the ASCII character of the released key. If the function call fails, an empty string is returned.
Keywords
Keysym — Returns a value associated with the key pressed.
State — If specified, returns a string array containing the state of all the modifier keys just before the event.
Discussion
The following are examples of modifier key names found in the State array: 'Shift
', 'Control
', 'Lock
', 'Mod1
', ..., (indicating which key was pressed); and 'Button1
', 'Button2
', ..., 'ButtonN
' (key modifiers).
Keysym is used in situations where the pressed key must be identified. The include file <X11/keysymdef.h>
contains a complete Keysym listing.
Example
For an example using WwGetKey, see the example for the WwGetPosition Function.