|
Oolite
|
Go to the source code of this file.
Classes | |
| class | OOJoystickManager |
Macros | |
| #define | MAX_STICKS 4 |
| #define | MAX_AXES 16 |
| #define | MAX_REAL_BUTTONS 64 |
| #define | MAX_HATS 4 |
| #define | MAX_BUTTONS (MAX_REAL_BUTTONS + 4 * MAX_HATS) |
| #define | STICK_NOFUNCTION -1 |
| #define | STICK_AXISUNASSIGNED -10.0 |
| #define | STICK_PRECISIONFAC 3 |
| #define | STICK_NORMALDIV 32768 |
| #define | STICK_PRECISIONDIV (STICK_PRECISIONFAC * STICK_NORMALDIV) |
| #define | STICK_DEADZONE 0.05 |
| #define | STICK_MAX_DEADZONE (STICK_DEADZONE * 2) |
| #define | HW_AXIS 1 |
| #define | HW_BUTTON 2 |
| #define | AXCBTHRESH 20000 |
| #define | AXIS_SETTINGS @"JoystickAxes" |
| #define | BUTTON_SETTINGS @"JoystickButs" |
| #define | GUI_BUTTON_SETTINGS @"GuiJoystickButs" |
| #define | STICK_ISAXIS @"isAxis" |
| #define | STICK_NUMBER @"stickNum" |
| #define | STICK_AXBUT @"stickAxBt" |
| #define | STICK_FUNCTION @"stickFunc" |
| #define | STICK_ROLL_AXIS_PROFILE_SETTING @"RollAxisProfile" |
| #define | STICK_PITCH_AXIS_PROFILE_SETTING @"PitchAxisProfile" |
| #define | STICK_YAW_AXIS_PROFILE_SETTING @"YawAxisProfile" |
| #define | ENUMKEY(x) |
| #define AXCBTHRESH 20000 |
Definition at line 148 of file OOJoystickManager.h.
Referenced by OOSDLJoystickManager::decodeAxisEvent:.
| #define AXIS_SETTINGS @"JoystickAxes" |
Definition at line 151 of file OOJoystickManager.h.
| #define BUTTON_SETTINGS @"JoystickButs" |
Definition at line 152 of file OOJoystickManager.h.
| #define ENUMKEY | ( | x | ) |
Definition at line 163 of file OOJoystickManager.h.
| #define GUI_BUTTON_SETTINGS @"GuiJoystickButs" |
Definition at line 153 of file OOJoystickManager.h.
| #define HW_AXIS 1 |
| #define HW_BUTTON 2 |
| #define MAX_AXES 16 |
Definition at line 126 of file OOJoystickManager.h.
Referenced by OOJoystickManager::axisFunctions, OOSDLJoystickManager::decodeAxisEvent:, OOJoystickManager(Private)::setFunctionForAxis:function:stick:, and OOJoystickManager::unsetAxisFunction:.
| #define MAX_BUTTONS (MAX_REAL_BUTTONS + 4 * MAX_HATS) |
Definition at line 129 of file OOJoystickManager.h.
Referenced by OOJoystickManager::buttonFunctions, OOJoystickManager::clearStickStates, OOSDLJoystickManager::decodeButtonEvent:, OOJoystickManager::guiButtonFunctions, OOJoystickManager(Private)::setFunctionForButton:function:stick:, OOJoystickManager::setGuiFunctionForButton:function:stick:, OOJoystickManager::unsetButtonFunction:, and OOJoystickManager::unsetGuiButtonFunction:.
| #define MAX_HATS 4 |
Definition at line 128 of file OOJoystickManager.h.
| #define MAX_REAL_BUTTONS 64 |
Definition at line 127 of file OOJoystickManager.h.
Referenced by OOSDLJoystickManager::decodeHatEvent:, and PlayerEntity(StickMapperInternal)::describeStickDict:.
| #define MAX_STICKS 4 |
Definition at line 125 of file OOJoystickManager.h.
Referenced by OOJoystickManager::axisFunctions, OOJoystickManager::buttonFunctions, OOJoystickManager::clearStickStates, OOJoystickManager::guiButtonFunctions, OOSDLJoystickManager::init, OOJoystickManager(Private)::setFunctionForAxis:function:stick:, OOJoystickManager(Private)::setFunctionForButton:function:stick:, OOJoystickManager::setGuiFunctionForButton:function:stick:, OOJoystickManager::unsetAxisFunction:, OOJoystickManager::unsetButtonFunction:, and OOJoystickManager::unsetGuiButtonFunction:.
| #define STICK_AXBUT @"stickAxBt" |
Definition at line 156 of file OOJoystickManager.h.
Referenced by PlayerEntity(StickMapperInternal)::checkCustomEquipButtons:ignore:, and PlayerEntity(OOControlsPrivate)::pollFlightControls:.
| #define STICK_AXISUNASSIGNED -10.0 |
Definition at line 131 of file OOJoystickManager.h.
Referenced by OOJoystickManager::clearStickStates, OOJoystickManager::getAxisState:, PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, PlayerEntity(OOControlsPrivate)::pollFlightControls:, PlayerEntity(OOControlsPrivate)::pollViewControls, and OOJoystickManager::unsetAxisFunction:.
| #define STICK_DEADZONE 0.05 |
Definition at line 137 of file OOJoystickManager.h.
Referenced by OOJoystickAxisProfile::init.
| #define STICK_FUNCTION @"stickFunc" |
Definition at line 157 of file OOJoystickManager.h.
| #define STICK_ISAXIS @"isAxis" |
Definition at line 154 of file OOJoystickManager.h.
Referenced by PlayerEntity(StickMapperInternal)::describeStickDict:, and PlayerEntity(StickMapper)::updateFunction:.
| #define STICK_MAX_DEADZONE (STICK_DEADZONE * 2) |
Definition at line 139 of file OOJoystickManager.h.
Referenced by OOJoystickAxisProfile::setDeadzone:, and StickProfileScreen(StickProfileInternal)::showScreen.
| #define STICK_NOFUNCTION -1 |
Definition at line 130 of file OOJoystickManager.h.
Referenced by OOJoystickManager::clearMappings, OOSDLJoystickManager::decodeAxisEvent:, OOJoystickManager(Private)::setFunctionForButton:function:stick:, OOJoystickManager::setGuiFunctionForButton:function:stick:, OOJoystickManager::unsetAxisFunction:, OOJoystickManager::unsetButtonFunction:, and OOJoystickManager::unsetGuiButtonFunction:.
| #define STICK_NORMALDIV 32768 |
Definition at line 134 of file OOJoystickManager.h.
Referenced by OOSDLJoystickManager::decodeAxisEvent:, and OOJoystickManager(Private)::setFunctionForAxis:function:stick:.
| #define STICK_NUMBER @"stickNum" |
Definition at line 155 of file OOJoystickManager.h.
Referenced by PlayerEntity(StickMapperInternal)::checkCustomEquipButtons:ignore:, and PlayerEntity(OOControlsPrivate)::pollFlightControls:.
| #define STICK_PITCH_AXIS_PROFILE_SETTING @"PitchAxisProfile" |
Definition at line 159 of file OOJoystickManager.h.
| #define STICK_PRECISIONDIV (STICK_PRECISIONFAC * STICK_NORMALDIV) |
Definition at line 135 of file OOJoystickManager.h.
| #define STICK_PRECISIONFAC 3 |
Definition at line 133 of file OOJoystickManager.h.
Referenced by OOJoystickManager::getAxisState:, and OOJoystickManager::getSensitivity.
| #define STICK_ROLL_AXIS_PROFILE_SETTING @"RollAxisProfile" |
Definition at line 158 of file OOJoystickManager.h.
| #define STICK_YAW_AXIS_PROFILE_SETTING @"YawAxisProfile" |
Definition at line 160 of file OOJoystickManager.h.
| anonymous enum |
| Enumerator | |
|---|---|
| AXIS_ROLL | |
| AXIS_PITCH | |
| AXIS_YAW | |
| AXIS_PRECISION | |
| AXIS_THRUST | |
| AXIS_VIEWX | |
| AXIS_VIEWY | |
| AXIS_end | |
Definition at line 46 of file OOJoystickManager.h.
| anonymous enum |
Definition at line 61 of file OOJoystickManager.h.