|
Oolite
|
#include <OOSDLJoystickManager.h>
Private Attributes | |
| NSDictionary * | joystickIdMap |
| SDL_Joystick * | stick [MAX_STICKS] |
| int | stickCount |
Additional Inherited Members | |
| Class Methods inherited from OOJoystickManager | |
| (id) | + sharedStickHandler |
| (BOOL) | + setStickHandlerClass: |
| Protected Attributes inherited from OOJoystickManager | |
| int8_t | axismap [MAX_STICKS][MAX_AXES] |
| int8_t | buttonmap [MAX_STICKS][MAX_BUTTONS] |
| int8_t | guibuttonmap [MAX_STICKS][MAX_BUTTONS] |
| BOOL | true_butstate [MAX_STICKS][MAX_BUTTONS] |
| double | axstate [AXIS_end] |
| BOOL | butstate [BUTTON_end] |
| uint8_t | hatstate [MAX_STICKS][MAX_HATS] |
| BOOL | precisionMode |
| id | cbObject |
| SEL | cbSelector |
| char | cbHardware |
| BOOL | invertPitch |
Definition at line 40 of file OOSDLJoystickManager.h.
| - (void) dealloc |
Definition at line 67 of file OOSDLJoystickManager.m.
References dealloc.
Referenced by dealloc.
| - (void) decodeAxisEvent: | (SDL_JoyAxisEvent*) | evt |
Definition at line 129 of file OOSDLJoystickManager.m.
References AXCBTHRESH, AXIS_PITCH, AXIS_ROLL, AXIS_THRUST, AXIS_VIEWX, AXIS_VIEWY, AXIS_YAW, OOJoystickManager::axismap, OOJoystickManager::axstate, OOJoystickManager::cbHardware, OOJoystickManager::cbObject, HW_AXIS, OOJoystickManager::invertPitch, MAX_AXES, nil, OOLog, STICK_NOFUNCTION, and STICK_NORMALDIV.
Referenced by handleSDLEvent:.
| - (void) decodeButtonEvent: | (SDL_JoyButtonEvent*) | evt |
Definition at line 191 of file OOSDLJoystickManager.m.
References OOJoystickManager::butstate, BUTTON_PRECISION, OOJoystickManager::buttonmap, OOJoystickManager::cbHardware, OOJoystickManager::cbObject, OOJoystickManager::guibuttonmap, HW_BUTTON, MAX_BUTTONS, nil, OOLog, OOJoystickManager::precisionMode, and OOJoystickManager::true_butstate.
Referenced by decodeHatEvent:, and handleSDLEvent:.
| - (void) decodeHatEvent: | (SDL_JoyHatEvent*) | evt |
Definition at line 234 of file OOSDLJoystickManager.m.
References decodeButtonEvent:, OOJoystickManager::hatstate, and MAX_REAL_BUTTONS.
Referenced by handleSDLEvent:.
|
implementation |
Reimplemented from OOJoystickManager.
Definition at line 94 of file OOSDLJoystickManager.m.
References stick.
| - (NSInteger) getJoystickIndexFromId: | (SDL_JoystickID) | joystickId |
Definition at line 73 of file OOSDLJoystickManager.m.
Referenced by makeJoyAxisEvent:, makeJoyButtonEvent:, and makeJoyHatEvent:.
| - (BOOL) handleSDLEvent: | (SDL_Event*) | evt |
Definition at line 254 of file OOSDLJoystickManager.m.
References decodeAxisEvent:, decodeButtonEvent:, decodeHatEvent:, makeJoyAxisEvent:, makeJoyButtonEvent:, makeJoyHatEvent:, and OOLog.
Referenced by MyOpenGLView(Input)::pollControls.
| - (id) init |
Reimplemented from OOJoystickManager.
Definition at line 33 of file OOSDLJoystickManager.m.
References OOJoystickManager::init, init, joystickIdMap, MAX_STICKS, OOLog, stick, and stickCount.
Referenced by init.
|
implementation |
Reimplemented from OOJoystickManager.
Definition at line 82 of file OOSDLJoystickManager.m.
References joystickCount, and stickCount.
Referenced by joystickCount.
| - (SDL_JoyAxisEvent) makeJoyAxisEvent: | (SDL_JoyAxisEvent*) | sdlevt |
Definition at line 99 of file OOSDLJoystickManager.m.
References getJoystickIndexFromId:.
Referenced by handleSDLEvent:.
| - (SDL_JoyButtonEvent) makeJoyButtonEvent: | (SDL_JoyButtonEvent*) | sdlevt |
Definition at line 109 of file OOSDLJoystickManager.m.
References getJoystickIndexFromId:.
Referenced by handleSDLEvent:.
| - (SDL_JoyHatEvent) makeJoyHatEvent: | (SDL_JoyHatEvent*) | sdlevt |
Definition at line 119 of file OOSDLJoystickManager.m.
References getJoystickIndexFromId:.
Referenced by handleSDLEvent:.
|
implementation |
Reimplemented from OOJoystickManager.
Definition at line 87 of file OOSDLJoystickManager.m.
References stickCount.
|
private |
Definition at line 42 of file OOSDLJoystickManager.h.
Referenced by init.
|
private |
Definition at line 43 of file OOSDLJoystickManager.h.
Referenced by getAxisWithStick:axis:, and init.
|
private |
Definition at line 44 of file OOSDLJoystickManager.h.
Referenced by init, joystickCount, and nameOfJoystick:.