galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
KeyPressed.cpp
Go to the documentation of this file.
1
7
8#include "KeyPressed.hpp"
9
10namespace galaxy
11{
12 KeyPressed::KeyPressed(const SDL_Scancode scancode, const Keys key, const KeyMods mod, const unsigned short raw, const bool repeat) noexcept
13 : m_scancode {scancode}
14 , m_key {key}
15 , m_mod {mod}
16 , m_raw {raw}
17 , m_repeat {repeat}
18 {
19 }
20} // namespace galaxy
Application.hpp galaxy.
Keys
Enum class representing keys.
Definition Keys.hpp:23
KeyMods
Enum class for key modifiers.
Definition Keys.hpp:286
KeyPressed(const SDL_Scancode scancode, const Keys key, const KeyMods mod, const unsigned short raw, const bool repeat) noexcept
Constructor.