Command to handle the deregistration of a key event for an Inputable object. More...
#include <KeyDeregistrationCommand.h>
Public Member Functions | |
KeyDeregistrationCommand (Inputable *in, AZUL_KEY k, EventType e) | |
Constructor for KeyDeregistrationCommand. | |
KeyDeregistrationCommand (const KeyDeregistrationCommand &)=delete | |
KeyDeregistrationCommand & | operator= (const KeyDeregistrationCommand &)=delete |
void | Execute () override |
Executes the deregistration 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 deregister. | |
EventType | eventType |
The event type to deregister. | |
Command to handle the deregistration of a key event for an Inputable object.
The KeyDeregistrationCommand class is responsible for executing the deregistration of a key event for an Inputable object. It inherits from the CommandBase class and overrides the Execute method to perform the deregistration action.
Constructor for KeyDeregistrationCommand.
in | Pointer to the Inputable object. |
k | The key to deregister. |
e | The event type to deregister. |
|
overridevirtual |
Executes the deregistration command for the key event.
Implements CommandBase.