|
GigaPasjans
|
Represent registry of Action objects. More...
#include <ActionRegistry.h>
Public Member Functions | |
| void | Register (const Keycode &keycode, const WideString &actionText, const Callback &callback, MouseButton button=MouseButton::None) |
| Registers given text and callback to given key. | |
| void | Clear () |
| Deletes all actions. | |
| void | Handle (const int32 &key) const |
| Lookups action with given key and calls action's callback. | |
| void | HandleMouse (const MouseButton &button) |
| Lookups action with given mouse button and calls action's callback. | |
| void | DrawActionsAt (DrawContext &context, const Int2 &position) const |
| Draws helper text with availible actions and corresponding keycode. | |
Represent registry of Action objects.
| void Andromenda::ActionRegistry::Handle | ( | const int32 & | key | ) | const |
Lookups action with given key and calls action's callback.
| key |