Joystick axis event handling for the mapper. More...
Public Member Functions | |
| CJAxisEvent (char const *const _entry, Bitu _stick, Bitu _axis, bool _positive, CJAxisEvent *_opposite_axis) | |
| Constructor, to describe entry, joystick, axis, direction, and the opposing axis. | |
| virtual void | Active (bool) |
| Change whether the event is activated or not. | |
| virtual Bitu | GetActivityCount (void) |
| Retrieve activity counter. | |
| virtual void | RepostActivity (void) |
| Re-post activity. | |
| void | notifybutton (CTextButton *n) |
| Associate this object with a text button in the mapper GUI so that joystick position can be displayed at all times. | |
| virtual void | RebindRedraw (void) |
| TODO. | |
Public Attributes | |
| CTextButton * | notify_button |
| Text button to use to display joystick position. | |
Protected Member Functions | |
| void | SetOppositeAxis (CJAxisEvent *_opposite_axis) |
| Associate this object with the opposing joystick axis. | |
Protected Attributes | |
| Bitu | stick |
| Joystick to follow. | |
| Bitu | axis |
| Joystick axis to track. | |
| bool | positive |
| Whether joystick axis is positive or negative. | |
| CJAxisEvent * | opposite_axis |
| Opposing joystick axis object. | |
Joystick axis event handling for the mapper.
Definition at line 2393 of file sdl_mapper.cpp.
1.8.0