KeyEvent::KeyEvent

KeyEvent::KeyEvent
KeyEvent(EventType eventType = Unknown, Key::Code code = Key::None, UByte asciiCode = 0, UInt32 wcharCode = 0, UInt8 keyboardIndex = 0);
KeyEvent(EventType eventType, Key::Code code, UByte asciiCode, UInt32 wcharCode, KeyModifiers mods, UInt8 keyboardIndex = 0);
Description

Initializes the KeyEvent.

Parameters
Parameters 
Description 
EventType eventType = Unknown 
The event type that took place, either KeyDown or KeyUp. 
Key::Code code = Key::None 
The key code of the key that was pressed or released. 
UByte asciiCode = 0 
ASCII code of the event type. 
UInt32 wcharCode = 0 
Unicode of the event type. 
UInt8 keyboardIndex = 0 
The index of the keyboard controller. 
KeyModifiers mods 
The state of the key modifiers.