cohtml::KeyEventData
A keyboard event.
#include <InputEvents.h>
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum | EventType { Unknown, KeyDown, KeyUp, Char} |
| enum | EventLocation { Standard = 0, Left = 1, Right = 2, Numpad = 3} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| KeyEventData() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| int | KeyCode The key code. |
| EventType | Type The type of the event. |
| EventModifiersState | Modifiers The current key modifiers. |
| EventLocation | Location Represents the location of the key on the keyboard or other input device. |
| 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. |
| bool | IsNumPad Is it a key from the num-pad. |
| 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). |
Public Types Documentation
Section titled “Public Types Documentation”enum EventType
Section titled “enum EventType”| Enumerator | Value | Description |
|---|---|---|
| Unknown | ||
| KeyDown | ||
| KeyUp | ||
| Char |
enum EventLocation
Section titled “enum EventLocation”| Enumerator | Value | Description |
|---|---|---|
| Standard | 0 | |
| Left | 1 | |
| Right | 2 | |
| Numpad | 3 |
Public Functions Documentation
Section titled “Public Functions Documentation”function KeyEventData
Section titled “function KeyEventData”inline KeyEventData()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable KeyCode
Section titled “variable KeyCode”int KeyCode;The key code.
variable Type
Section titled “variable Type”EventType Type;The type of the event.
variable Modifiers
Section titled “variable Modifiers”EventModifiersState Modifiers;The current key modifiers.
variable Location
Section titled “variable Location”EventLocation Location;Represents the location of the key on the keyboard or other input device.
variable IsAutoRepeat
Section titled “variable IsAutoRepeat”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.
variable IsNumPad
Section titled “variable IsNumPad”bool IsNumPad;Is it a key from the num-pad.
variable IsSystemKey
Section titled “variable IsSystemKey”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).
© 2026 Coherent Labs. All rights reserved.