Command to handle the registration of a key event for an Inputable object. More...
#include <MouseKeyRegistrationCommand.h>
Public Member Functions | |
MouseKeyRegistrationCommand (Inputable *in, AZUL_MOUSE k, EventType e) | |
Constructor for MouseKeyRegistrationCommand. | |
MouseKeyRegistrationCommand (const MouseKeyRegistrationCommand &)=delete | |
MouseKeyRegistrationCommand & | operator= (const MouseKeyRegistrationCommand &)=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_MOUSE | 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 MouseKeyRegistrationCommand 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.
MouseKeyRegistrationCommand::MouseKeyRegistrationCommand | ( | Inputable * | in, |
AZUL_MOUSE | k, | ||
EventType | e ) |
Constructor for MouseKeyRegistrationCommand.
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.