Sly Engine
|
#include <SingleKeyEventManager.h>
Public Types | |
typedef std::map< Inputable *, Inputable::EVENT_TYPE > | InputableCollection |
Defines an alias representing collection of inputables. More... | |
Public Member Functions | |
SingleKeyEventManager ()=default | |
Default constructor. More... | |
SingleKeyEventManager (const SingleKeyEventManager &)=delete | |
Copy constructor. More... | |
SingleKeyEventManager (SingleKeyEventManager &&)=delete | |
Move constructor. More... | |
SingleKeyEventManager & | operator= (const SingleKeyEventManager &)=delete |
Assignment operator. More... | |
SingleKeyEventManager & | operator= (SingleKeyEventManager &&)=delete |
Move assignment operator. More... | |
~SingleKeyEventManager ()=default | |
Deconstructor. More... | |
SingleKeyEventManager (AZUL_KEY inputKey) | |
Constructor. More... | |
SingleKeyEventManager (AZUL_KEY inputKey, Inputable *inputCallback, Inputable::EVENT_TYPE e) | |
Constructor. More... | |
void | ProcessKeyEvent () |
Process the key event. More... | |
void | Register (Inputable *inputIn, Inputable::EVENT_TYPE e) |
Registers this. More... | |
void | Deregister (Inputable *inputIn, Inputable::EVENT_TYPE e) |
Deregisters this. More... | |
Private Attributes | |
AZUL_KEY | key |
The key. More... | |
Inputable::EVENT_TYPE | currentState |
The current state. More... | |
InputableCollection | keyPressCol |
The key press col. More... | |
InputableCollection | keyReleaseCol |
The key release col. More... | |
Friends | |
class | InputableAttorney |
Defines an alias representing collection of inputables.
|
default |
Default constructor.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
default |
Deconstructor.
SingleKeyEventManager::SingleKeyEventManager | ( | AZUL_KEY | inputKey | ) |
Constructor.
inputKey | The input key. |
SingleKeyEventManager::SingleKeyEventManager | ( | AZUL_KEY | inputKey, |
Inputable * | inputCallback, | ||
Inputable::EVENT_TYPE | e | ||
) |
Constructor.
inputKey | The input key. | |
[in,out] | inputCallback | If non-null, the input callback. |
e | An Inputable::EVENT_TYPE to process. |
void SingleKeyEventManager::Deregister | ( | Inputable * | inputIn, |
Inputable::EVENT_TYPE | e | ||
) |
Deregisters this.
[in,out] | inputIn | If non-null, the input in. |
e | An Inputable::EVENT_TYPE to process. |
|
delete |
Assignment operator.
|
delete |
Move assignment operator.
void SingleKeyEventManager::ProcessKeyEvent | ( | ) |
Process the key event.
void SingleKeyEventManager::Register | ( | Inputable * | inputIn, |
Inputable::EVENT_TYPE | e | ||
) |
Registers this.
[in,out] | inputIn | If non-null, the input in. |
e | An Inputable::EVENT_TYPE to process. |
|
friend |
|
private |
The current state.
|
private |
The key.
|
private |
The key press col.
|
private |
The key release col.