GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events::KeyEventBase Struct Reference

Keyboard key Event base. More...

#include <GREM/events/Event.hpp>

Inheritance diagram for grem::events::KeyEventBase:

Public Member Functions

Input getInput () const noexcept
 Get the general identifier of the physical key input.

Public Attributes

Scancode scancode
 Scancode of the physical key location.
KeyCode keyCode
 Virtual key code, based on the user's current OS-level key mapping.
KeyModifiers keyModifiers
 Current key modifiers.
Public Attributes inherited from grem::events::InputEventBase
uint32_t windowID
 Unique identifier of the window that this event belongs to, if any.
Public Attributes inherited from grem::events::EventBase
TimePoint timestamp
 Timestamp of the event.

Detailed Description

Keyboard key Event base.

Member Function Documentation

◆ getInput()

Input grem::events::KeyEventBase::getInput ( ) const
nodiscardnoexcept

Get the general identifier of the physical key input.

Returns
the input identifier corresponding to the key's scancode.

Member Data Documentation

◆ scancode

Scancode grem::events::KeyEventBase::scancode

Scancode of the physical key location.

◆ keyCode

KeyCode grem::events::KeyEventBase::keyCode

Virtual key code, based on the user's current OS-level key mapping.

◆ keyModifiers

KeyModifiers grem::events::KeyEventBase::keyModifiers

Current key modifiers.


The documentation for this struct was generated from the following file: