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
KeyReleased.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_EVENTS_KEYRELEASED_HPP_
9#define GALAXY_EVENTS_KEYRELEASED_HPP_
10
12#include "galaxy/input/Keys.hpp"
13
14namespace galaxy
15{
19 struct KeyReleased final : public Event
20 {
30 KeyReleased(const SDL_Scancode scancode, const Keys key, const KeyMods mod, const unsigned short raw, const bool repeat) noexcept;
31
35 SDL_Scancode m_scancode = SDL_SCANCODE_UNKNOWN;
36
41
46
50 unsigned short m_raw = 0;
51
55 bool m_repeat = false;
56 };
57} // namespace galaxy
58
59#endif
Base type of all events.
Definition Event.hpp:17
Application.hpp galaxy.
Keys
Enum class representing keys.
Definition Keys.hpp:23
KeyMods
Enum class for key modifiers.
Definition Keys.hpp:286
Contains data on key that was released.
bool m_repeat
True if this is a key repeat.
SDL_Scancode m_scancode
SDL physical key code.
KeyReleased(const SDL_Scancode scancode, const Keys key, const KeyMods mod, const unsigned short raw, const bool repeat) noexcept
Constructor.
Keys m_key
SDL virtual key code.
unsigned short m_raw
The platform dependent scancode for this event.
KeyMods m_mod
Current key modifiers.