CoreComponents 3.0.0
A Modern C++ Toolkit
|
Keyboard input event. More...
#include <cc/KeyEvent>
Public Member Functions | |
KeyEvent (KeyAction action, double time, int repeatCount, ScanCode scanCode, KeyCode keyCode, KeyModifier modifiers) | |
Create a new keyboard input event. | |
KeyAction | action () const |
Keyboard key action | |
double | time () const |
Event time. | |
int | repeatCount () const |
Automatic key repeat count. | |
ScanCode | scanCode () const |
Keyboard scan code. | |
KeyCode | keyCode () const |
Hardware independent key code. | |
KeyModifier | modifiers () const |
Shortcut keys | |
Keyboard input event.
KeyEvent | ( | KeyAction | action, |
double | time, | ||
int | repeatCount, | ||
ScanCode | scanCode, | ||
KeyCode | keyCode, | ||
KeyModifier | modifiers ) |
Create a new keyboard input event.
action | Keyboard key action |
time | Event time. |
repeatCount | Automatic key repeat count. |
scanCode | Keyboard scan code. |
Keyboard scan codes reflect the physical location of individual keys on a keyboard. The keys may be labelled differently depending on the currently active keyboard layout. These keyboard scan codes are based on the USB specification.
keyCode | Hardware independent key code. |
modifiers | Shortcut keys |
KeyAction action | ( | ) | const |
Keyboard key action
double time | ( | ) | const |
Event time.
int repeatCount | ( | ) | const |
Automatic key repeat count.
ScanCode scanCode | ( | ) | const |
Keyboard scan code.
Keyboard scan codes reflect the physical location of individual keys on a keyboard. The keys may be labelled differently depending on the currently active keyboard layout. These keyboard scan codes are based on the USB specification.
KeyCode keyCode | ( | ) | const |
Hardware independent key code.
KeyModifier modifiers | ( | ) | const |
Shortcut keys