Mapper shortcut event. Keyboard triggerable only. More...
Public Member Functions | |
CHandlerEvent (char const *const _entry, MAPPER_Handler *_handler, MapKeys _key, Bitu _mod, char const *const _buttonname) | |
Constructor, to specify the entry, handler (callback), key (according to MapKeys enumeration), and text to display for the shortcut in the mapper UO. | |
virtual void | RebindRedraw (void) |
TODO. | |
virtual void | Active (bool yesno) |
Change whether the event is activated or not. | |
const char * | ButtonName (void) |
Retrieve the button name (for display in the mapper UI) | |
void | MakeDefaultBind (char *buf) |
Generate a default binding from the MapKeys enumeration. | |
void | notifybutton (CTextButton *n) |
Associate this object with a text button in the mapper UI. | |
Public Attributes | |
CTextButton * | notify_button |
Text button in the mapper UI to indicate status by. | |
MAPPER_Handler * | handler |
Mapper handler shortcut. | |
const char * | buttonname |
Button name. | |
Protected Attributes | |
MapKeys | defkey |
MapKeys enumeration for keyboard shortcut. | |
Bitu | defmod |
Default modifiers. |
Mapper shortcut event. Keyboard triggerable only.
Definition at line 2586 of file sdl_mapper.cpp.