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 HandleableEvent
20 {
24 SDL_Scancode m_scancode = SDL_SCANCODE_UNKNOWN;
25
30
35
39 unsigned short m_raw = 0;
40
44 bool m_repeat = false;
45 };
46} // namespace galaxy
47
48#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
Keys
Enum class representing keys.
Definition Keys.hpp:19
KeyMods
Enum class for key modifiers.
Definition Keys.hpp:282
This allows an event to be marked as being "handled" so events lower in the stack can no longer consu...
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.
Keys m_key
SDL virtual key code.
unsigned short m_raw
The platform dependent scancode for this event.
KeyMods m_mod
Current key modifiers.