SDEngine
Game Engine
Loading...
Searching...
No Matches
sd::KeyPressedEvent Class Reference

#include <keyboard_events.hpp>

+ Inheritance diagram for sd::KeyPressedEvent:
+ Collaboration diagram for sd::KeyPressedEvent:

Public Member Functions

 KeyPressedEvent (int key, int scancode, int mods, bool repeat)
 
- Public Member Functions inherited from sd::Event
virtual ~Event ()=default
 
virtual const charget_name () const =0
 
virtual EventType get_event_type () const =0
 
virtual int get_category_flags () const =0
 
bool is_in_category (EventCategory category) const
 

Public Attributes

int key {}
 
int scancode {}
 
int mods {}
 
bool repeat {}
 

Constructor & Destructor Documentation

◆ KeyPressedEvent()

sd::KeyPressedEvent::KeyPressedEvent ( int  key,
int  scancode,
int  mods,
bool  repeat 
)
inline

Member Data Documentation

◆ key

int sd::KeyPressedEvent::key {}

◆ mods

int sd::KeyPressedEvent::mods {}

◆ repeat

bool sd::KeyPressedEvent::repeat {}

◆ scancode

int sd::KeyPressedEvent::scancode {}

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