DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | Protected Attributes
CHandlerEvent Class Reference

Mapper shortcut event. Keyboard triggerable only. More...

Inheritance diagram for CHandlerEvent:
CTriggeredEvent CEvent

List of all members.

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 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

CTextButtonnotify_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.

Detailed Description

Mapper shortcut event. Keyboard triggerable only.

Definition at line 2162 of file sdl_mapper.cpp.


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