Sly Engine
SingleKeyEventManager Class Reference

#include <SingleKeyEventManager.h>

Collaboration diagram for SingleKeyEventManager:
Collaboration graph

Public Types

typedef std::map< Inputable *, Inputable::EVENT_TYPEInputableCollection
 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...
 
SingleKeyEventManageroperator= (const SingleKeyEventManager &)=delete
 Assignment operator. More...
 
SingleKeyEventManageroperator= (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
 

Member Typedef Documentation

◆ InputableCollection

Defines an alias representing collection of inputables.

Constructor & Destructor Documentation

◆ SingleKeyEventManager() [1/5]

SingleKeyEventManager::SingleKeyEventManager ( )
default

Default constructor.

◆ SingleKeyEventManager() [2/5]

SingleKeyEventManager::SingleKeyEventManager ( const SingleKeyEventManager )
delete

Copy constructor.

◆ SingleKeyEventManager() [3/5]

SingleKeyEventManager::SingleKeyEventManager ( SingleKeyEventManager &&  )
delete

Move constructor.

◆ ~SingleKeyEventManager()

SingleKeyEventManager::~SingleKeyEventManager ( )
default

Deconstructor.

◆ SingleKeyEventManager() [4/5]

SingleKeyEventManager::SingleKeyEventManager ( AZUL_KEY  inputKey)

Constructor.

Parameters
inputKeyThe input key.

◆ SingleKeyEventManager() [5/5]

SingleKeyEventManager::SingleKeyEventManager ( AZUL_KEY  inputKey,
Inputable inputCallback,
Inputable::EVENT_TYPE  e 
)

Constructor.

Parameters
inputKeyThe input key.
[in,out]inputCallbackIf non-null, the input callback.
eAn Inputable::EVENT_TYPE to process.
Here is the call graph for this function:

Member Function Documentation

◆ Deregister()

void SingleKeyEventManager::Deregister ( Inputable inputIn,
Inputable::EVENT_TYPE  e 
)

Deregisters this.

Parameters
[in,out]inputInIf non-null, the input in.
eAn Inputable::EVENT_TYPE to process.

◆ operator=() [1/2]

SingleKeyEventManager& SingleKeyEventManager::operator= ( const SingleKeyEventManager )
delete

Assignment operator.

◆ operator=() [2/2]

SingleKeyEventManager& SingleKeyEventManager::operator= ( SingleKeyEventManager &&  )
delete

Move assignment operator.

◆ ProcessKeyEvent()

void SingleKeyEventManager::ProcessKeyEvent ( )

Process the key event.

Here is the call graph for this function:

◆ Register()

void SingleKeyEventManager::Register ( Inputable inputIn,
Inputable::EVENT_TYPE  e 
)

Registers this.

Parameters
[in,out]inputInIf non-null, the input in.
eAn Inputable::EVENT_TYPE to process.
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ InputableAttorney

friend class InputableAttorney
friend

Member Data Documentation

◆ currentState

Inputable::EVENT_TYPE SingleKeyEventManager::currentState
private

The current state.

◆ key

AZUL_KEY SingleKeyEventManager::key
private

The key.

◆ keyPressCol

InputableCollection SingleKeyEventManager::keyPressCol
private

The key press col.

◆ keyReleaseCol

InputableCollection SingleKeyEventManager::keyReleaseCol
private

The key release col.


The documentation for this class was generated from the following files: