Class for key events.
#include <event/YiKeyEvent.h>

Public Types | |
| enum | KEY_LOCATION { KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT, KEY_LOCATION_RIGHT, KEY_LOCATION_NUMPAD, KEY_LOCATION_MOBILE, KEY_LOCATION_JOYSTICK } |
Public Attributes | |
| char32_t | m_cKeyValue |
| YI_KEY_CODE | m_eKeyCode |
| YI_RECT_REL | m_nScreenRect |
| bool | m_bRepeat |
| bool | m_bShiftKey |
| bool | m_bControlKey |
| bool | m_bAltKey |
| bool | m_bMetaKey |
| KEY_LOCATION | m_eKeyLocation |
Public Attributes inherited from CYIEvent | |
| CYIEventTarget * | m_pTarget |
| CYIEventTarget * | m_pCurrentTarget |
| YI_EVENT_PHASE | m_ePhase |
| bool | m_bCanCancel |
| bool | m_bCanBubble |
| bool | m_bCanCapture |
| bool | m_bStopPropagation |
| bool | m_bHandled |
| uint64_t | m_uEventTimeMs |
Enum which indicates where the key is originating from.
| CYIKeyEvent::CYIKeyEvent | ( | YI_EVENT_TYPE | eventType | ) |
|
default |
|
virtual |
|
overridevirtual |
Reimplemented from CYIEvent.
| bool CYIKeyEvent::m_bAltKey |
True when Alt or Option key is pressed.
| bool CYIKeyEvent::m_bControlKey |
True when Control key is pressed.
| bool CYIKeyEvent::m_bMetaKey |
True when Meta key (Command key on Mac) is pressed.
| bool CYIKeyEvent::m_bRepeat |
True when a key is pressed and held resulting in multiple events.
| bool CYIKeyEvent::m_bShiftKey |
True when Shift key is pressed.
| char32_t CYIKeyEvent::m_cKeyValue |
The character value of the key pressed.
| YI_KEY_CODE CYIKeyEvent::m_eKeyCode |
The key code of the key pressed.
| KEY_LOCATION CYIKeyEvent::m_eKeyLocation |
Location of the key pressed.
| YI_RECT_REL CYIKeyEvent::m_nScreenRect |
If a soft keyboard, keys have a location and size.