SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
KeyDeregistrationCommand.h
1#ifndef KeyDeregistrationCommand_H
2#define KeyDeregistrationCommand_H
3
4#include "../CommandBase.h"
5#include "KeyboardEventManager.h"
6#include "Inputable.h"
7
8class Inputable;
9
18{
19public:
28 KeyDeregistrationCommand& operator=(const KeyDeregistrationCommand&) = delete;
29 ~KeyDeregistrationCommand() = 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
void Execute() override
Executes the deregistration command for the key event.
Definition KeyDeregistrationCommand.cpp:6
EventType eventType
The event type to deregister.
Definition KeyDeregistrationCommand.h:49
KeyDeregistrationCommand(Inputable *in, AZUL_KEY k, EventType e)
Constructor for KeyDeregistrationCommand.
Definition KeyDeregistrationCommand.cpp:4
Inputable * ptrIn
Pointer to the Inputable object.
Definition KeyDeregistrationCommand.h:39
AZUL_KEY key
The key to deregister.
Definition KeyDeregistrationCommand.h:44