SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
KeyRegistrationCommand.h
1#ifndef KeyRegistrationCommand_H
2#define KeyRegistrationCommand_H
3
4#include "../CommandBase.h"
5#include "KeyboardEventManager.h"
6#include "Inputable.h"
7
8class Inputable;
9
18{
19public:
26 KeyRegistrationCommand(Inputable* in, AZUL_KEY k, EventType e);
28 KeyRegistrationCommand& operator=(const KeyRegistrationCommand&) = delete;
29 ~KeyRegistrationCommand() = default;
30
34 void Execute() override;
35
40
44 AZUL_KEY key;
45
50};
51
52#endif
Defines the base class for all command objects.
EventType
Enum class representing the types of input events.
Definition EventType.h:19
Base class for all command objects.
Definition CommandBase.h:19
Base class for objects that can handle keyboard input events.
Definition Inputable.h:23
AZUL_KEY key
The key to register.
Definition KeyRegistrationCommand.h:44
void Execute() override
Executes the registration command for the key event.
Definition KeyRegistrationCommand.cpp:6
KeyRegistrationCommand(Inputable *in, AZUL_KEY k, EventType e)
Constructor for KeyRegistrationCommand.
Definition KeyRegistrationCommand.cpp:4
EventType eventType
The event type to register.
Definition KeyRegistrationCommand.h:49
Inputable * ptrIn
Pointer to the Inputable object.
Definition KeyRegistrationCommand.h:39