Base C++ class for a binding assigned in the mapper interface (or by default settings) More...
Public Types | |
| enum | CBindType { bind_t = 0, keybind_t } |
| Bind class type, for runtime detection. | |
Public Member Functions | |
| CBind (CBindList *_list, enum CBindType _type=bind_t) | |
| Constructor, to define the binding and type. This constructor adds the CBind object itself to the list. | |
| virtual std::string | GetModifierText (void) |
| Get modifier text. | |
| virtual std::string | GetBindMenuText (void) |
| Get binding text, for display in the menu item. | |
| void | AddFlags (char *buf) |
| Append modifier text to a string, for use in recording bindings to the mapper file. | |
| void | SetFlags (char *buf) |
| Read modifier flags from a string, for use in parsing bindings from the mapper file. | |
| virtual void | ActivateBind (Bits _value, bool ev_trigger, bool skip_action=false) |
| Activate bindings. | |
| void | DeActivateBind (bool ev_trigger) |
| Deactivate bindings. | |
| virtual void | ConfigName (char *buf)=0 |
| Get configuration name, for use in writing the mapper file. | |
| virtual void | BindName (char *buf)=0 |
| Get binding name, for display in the mapper UI. | |
Public Attributes | |
| Bitu | mods |
| Modifiers (shift, ctrl, alt) | |
| Bitu | flags |
| Flags (hold) | |
| Bit16s | value |
| Binding value (TODO?) | |
| CEvent * | event |
| Event object this binding is bound to (for visual UI purposes) | |
| CBindList * | list |
| List that this object is part of. | |
| bool | active |
| Active status. | |
| bool | holding |
| Holding status. | |
| enum CBindType | type |
| Binding type. | |
Base C++ class for a binding assigned in the mapper interface (or by default settings)
Definition at line 488 of file sdl_mapper.cpp.
1.8.0