|VRS - The Virtual Rendering System|
Public Member Functions
|KeyEvent (Canvas *canvas, InputEvent::Modifier modifiers=InputEvent::NoModifier, VRSTime time=0, unsigned int keyCode=0, InputEvent::Change pressed=InputEvent::Pressed, bool isAutoRepeat=false)|
|unsigned int||keyCode () const|
|bool||pressed () const|
|bool||released () const|
|bool||isAutoRepeat () const|
|Returns true if the event has been caused by auto-repeat. |
|VRS_TYPEINFO (KeyEvent, InputEvent)|
|InputEvent::Modifier|| modifiers =
|VRSTime|| time =
|unsigned int|| keyCode =
|InputEvent::Change|| pressed =
|bool|| isAutoRepeat = |
|unsigned int VRS::KeyEvent::keyCode||(||)|| const
The key code specific to the operating system. ASCII keys are given by their ASCII key code. Special keys are encoded by the constants defined in the 'Key' class.
|bool VRS::KeyEvent::pressed||(||)|| const
|bool VRS::KeyEvent::released||(||)|| const
In general, a key event is produced if a key is pressed and when it is released. Some user interface systems do not provide release events.
|bool VRS::KeyEvent::isAutoRepeat||(||)|| const
Returns true if the event has been caused by auto-repeat.
If this information is not available for the used GUI lib, the result is always 'false'.