CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
KeyEvent Class Referencefinal

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
 

Detailed Description

Keyboard input event.

Constructor & Destructor Documentation

◆ KeyEvent()

KeyEvent ( KeyAction action,
double time,
int repeatCount,
ScanCode scanCode,
KeyCode keyCode,
KeyModifier modifiers )

Create a new keyboard input event.

Parameters
actionKeyboard key action
timeEvent time.
repeatCountAutomatic key repeat count.
scanCodeKeyboard 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.

See also
KeyCode
Parameters
keyCodeHardware independent key code.
modifiersShortcut keys

Member Function Documentation

◆ action()

KeyAction action ( ) const

Keyboard key action

◆ time()

double time ( ) const

Event time.

◆ repeatCount()

int repeatCount ( ) const

Automatic key repeat count.

◆ scanCode()

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.

See also
KeyCode

◆ keyCode()

KeyCode keyCode ( ) const

Hardware independent key code.

◆ modifiers()

KeyModifier modifiers ( ) const

Shortcut keys