A keyboard event. More...
Public Types | |
enum | EventType { Unknown, KeyDown, KeyUp, Char } |
enum | EventLocation { Standard = 0, Left = 1, Right = 2, Numpad = 3 } |
Public Member Functions | |
KeyEventData () | |
Public Attributes | |
int | KeyCode |
The key code. More... | |
EventType | Type |
The type of the event. More... | |
EventModifiersState | Modifiers |
The current key modifiers. More... | |
EventLocation | Location |
Represents the location of the key on the keyboard or other input device. More... | |
bool | IsAutoRepeat |
Is it an auto-repeat event (the user is holding the key down). This value isn't crucial and you can set it to false if you don't have the information, however you might experience incorrect repeat behavior in such case. More... | |
bool | IsNumPad |
Is it a key from the num-pad. More... | |
bool | IsSystemKey |
This identifies whether this event was tagged by the system as being a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). Other platforms don't have this concept. Generally means the Alt key is held down (but not AltGr, if present). More... | |
A keyboard event.
|
inline |
bool cohtml::KeyEventData::IsAutoRepeat |
Is it an auto-repeat event (the user is holding the key down). This value isn't crucial and you can set it to false if you don't have the information, however you might experience incorrect repeat behavior in such case.
bool cohtml::KeyEventData::IsNumPad |
Is it a key from the num-pad.
bool cohtml::KeyEventData::IsSystemKey |
This identifies whether this event was tagged by the system as being a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). Other platforms don't have this concept. Generally means the Alt key is held down (but not AltGr, if present).
int cohtml::KeyEventData::KeyCode |
The key code.
EventLocation cohtml::KeyEventData::Location |
Represents the location of the key on the keyboard or other input device.
EventModifiersState cohtml::KeyEventData::Modifiers |
The current key modifiers.
EventType cohtml::KeyEventData::Type |
The type of the event.