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
galaxy::KeyPressed Struct Referencefinal

Contains data on key that was pressed. More...

#include <KeyPressed.hpp>

+ Inheritance diagram for galaxy::KeyPressed:
+ Collaboration diagram for galaxy::KeyPressed:

Public Attributes

SDL_Scancode m_scancode = SDL_SCANCODE_UNKNOWN
 SDL physical key code.
 
Keys m_key = Keys::KEY_UNKNOWN
 SDL virtual key code.
 
KeyMods m_mod = KeyMods::MOD_NONE
 Current key modifiers.
 
unsigned short m_raw = 0
 The platform dependent scancode for this event.
 
bool m_repeat = false
 True if this is a key repeat.
 
- Public Attributes inherited from galaxy::HandleableEvent
bool m_handled = false
 Has this event been handled/consumed/processed already.
 

Detailed Description

Contains data on key that was pressed.

Definition at line 19 of file KeyPressed.hpp.

Member Data Documentation

◆ m_scancode

SDL_Scancode galaxy::KeyPressed::m_scancode = SDL_SCANCODE_UNKNOWN

SDL physical key code.

Definition at line 24 of file KeyPressed.hpp.

◆ m_key

Keys galaxy::KeyPressed::m_key = Keys::KEY_UNKNOWN

SDL virtual key code.

Definition at line 29 of file KeyPressed.hpp.

◆ m_mod

KeyMods galaxy::KeyPressed::m_mod = KeyMods::MOD_NONE

Current key modifiers.

Definition at line 34 of file KeyPressed.hpp.

◆ m_raw

unsigned short galaxy::KeyPressed::m_raw = 0

The platform dependent scancode for this event.

Definition at line 39 of file KeyPressed.hpp.

◆ m_repeat

bool galaxy::KeyPressed::m_repeat = false

True if this is a key repeat.

Definition at line 44 of file KeyPressed.hpp.


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