StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
StevEngine::InputKeyDownEvent Class Reference

Event triggered when a keyboard key is pressed. More...

#include <inputs/InputSystem.hpp>

Inheritance diagram for StevEngine::InputKeyDownEvent:
StevEngine::Event

Public Member Functions

 InputKeyDownEvent (SDL_Keycode key)
 Create key down event.
 
const std::string GetEventType () const override
 Get type identifier for this event.
 

Static Public Member Functions

static const std::string GetStaticEventType ()
 

Public Attributes

SDL_Keycode key
 Keycode of pressed key.
 

Detailed Description

Event triggered when a keyboard key is pressed.

Constructor & Destructor Documentation

◆ InputKeyDownEvent()

StevEngine::InputKeyDownEvent::InputKeyDownEvent ( SDL_Keycode key)
inline

Create key down event.

Parameters
keySDL keycode of pressed key

Member Function Documentation

◆ GetEventType()

const std::string StevEngine::InputKeyDownEvent::GetEventType ( ) const
inlineoverridevirtual

Get type identifier for this event.

Returns
String identifier for event type

Implements StevEngine::Event.


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