Nymph Game Engine
Chaiscript based Game Engine
|
Class for key down event. More...
#include <key_down_event.h>
Public Member Functions | |
KeyDownEvent (const int key) | |
Constructor for KeyDownEvent. More... | |
int | getKey () const noexcept |
Gets the key. More... | |
Public Member Functions inherited from Events::Event | |
Event (const EventType &type) | |
Event constructor. More... | |
EventType | getEventType () const |
Gets the event type. More... | |
Static Public Member Functions | |
static std::shared_ptr < KeyDownEvent > | create (const int key) |
Factory function. More... | |
Class for key down event.
|
inline |
Constructor for KeyDownEvent.
[in] | key | The key |
|
inlinestatic |
Factory function.
[in] | key | The key |
Referenced by generated::getKeyDownEventModule(), and Input::InputSystem::pollForInput().
|
inlinenoexcept |