Command to handle the registration of a key event for an Inputable object. More...
#include <KeyRegistrationCommand.h>
Public Member Functions | |
KeyRegistrationCommand (Inputable *in, AZUL_KEY k, EventType e) | |
Constructor for KeyRegistrationCommand. | |
KeyRegistrationCommand (const KeyRegistrationCommand &)=delete | |
KeyRegistrationCommand & | operator= (const KeyRegistrationCommand &)=delete |
void | Execute () override |
Executes the registration command for the key event. | |
![]() | |
virtual | ~CommandBase ()=default |
Destructor for CommandBase. | |
Public Attributes | |
Inputable * | ptrIn |
Pointer to the Inputable object. | |
AZUL_KEY | key |
The key to register. | |
EventType | eventType |
The event type to register. | |
Command to handle the registration of a key event for an Inputable object.
The KeyRegistrationCommand class is responsible for executing the registration of a key event for an Inputable object. It inherits from the CommandBase class and overrides the Execute method to perform the registration action.
Constructor for KeyRegistrationCommand.
in | Pointer to the Inputable object. |
k | The key to register. |
e | The event type to register. |
|
overridevirtual |
Executes the registration command for the key event.
Implements CommandBase.