[Overview][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Describes a key press or release.
Source position: keyeventd.inc line 34
type IPTCKeyEvent = interface(IPTCEvent) |
||
function GetCode; |
|
|
function GetUnicode; |
|
|
function GetAlt; |
|
|
function GetShift; |
|
|
function GetControl; |
|
|
function GetPress; |
|
|
function GetRelease; |
|
|
property Code: Integer; [r] |
|
Gets the key code. |
property Unicode: Integer; [r] |
|
Gets the unicode number of the character, represented by the key. |
property Alt: Boolean; [r] |
|
Gets the alt key modifier. |
property Shift: Boolean; [r] |
|
Gets the shift key modifier. |
property Control: Boolean; [r] |
|
Gets the control key modifier. |
property Press: Boolean; [r] |
|
Checks if the key event is a key press. |
property Release: Boolean; [r] |
|
Checks if the key event is a key release. |
end; |
|
Describes a key press or release. |
|
|
Describes an event. |
Describes a key press or release.
The key object represents a single key press or release event. Each key press consists of a key code that identifies the key pressed/released, a flag indicating whether the event was a key press or a key release, and three modifier flags: alt, shift and control that indicate whether or not the alt, shift or control keys were held while the key was pressed/released. Key objects are stored in a fifo queue internally inside the console class when a key is pressed and can be read using the IPTCConsole.KeyPressed, IPTCConsole.ReadKey and IPTCConsole.ReadKey methods.