Description


Include file: xkeyevnt.h

Overview

A XKeyboardEvent represents a user input to the keyboard, to catch these events install a XKeyboardHandler.

XKeyboardEvent::GetEventID() returns the ASCII-code of the key which was pressed, with XKeyboardEvent::GetVirtualKey() and XKeyboardEvent::GetScanCode() you receivemore information.

Variables

GetScanCode

Return-Value

SHORT code

Remarks

Use this function to get the scancode

GetVirtualKey

Return-Value


SHORT key virtual key, this value can be:
XKC_KEYUP The event is a key-up transition
XKC_PREVDOWN The key has been previously down
XKC_LONEKEY Indicates if the key is pressed and released without any other keys
XKC_SHIFT The SHIFT state is active
XKC_ALT The ALT state is active
XKC_CTRL The CTRL state was active

This values can be or-ed.

Remarks

Use this function to get the virtual key defined by the OS


This document was generated by Jens von Pilgrim's Autodoc