Responsible for Input functions. More...
#include <Inputable.h>
Protected Member Functions | |
void | SubmitRegistration (AZUL_KEY k, EVENT_TYPE e) |
Called when wanting to check for a specific key. | |
void | SubmitDeregistration (AZUL_KEY k, EVENT_TYPE e) |
Called when wanting to stop checking for a specific key. | |
Private Member Functions | |
virtual void | KeyPress (AZUL_KEY k) |
Fill this with code that occurs on a key press. | |
virtual void | KeyRelease (AZUL_KEY k) |
Fill this with code that occurs on a key release. | |
Responsible for Input functions.
|
privatevirtual |
Fill this with code that occurs on a key press.
This function will only be called when a registered key is pressed. k represents which key has been pressed.
Example:
k |
|
privatevirtual |
Fill this with code that occurs on a key release.
This function will only be called when a registered key is released. k represents which key has been released.
Example:
k |
|
protected |
Called when wanting to stop checking for a specific key.
Event types can be either EVENT_TYPE::KEY_PRESS or EVENT_TYPE::KEY_RELEASE.
Example:
|
protected |
Called when wanting to check for a specific key.
Keys can be registered for checking both press and release. Event types can be either EVENT_TYPE::KEY_PRESS or EVENT_TYPE::KEY_RELEASE.
Example: