|
Oolite
|
#include <MyOpenGLView+Input.h>
Instance Methods | |
| (void) | - autoShowMouse |
| (void) | - initKeyMappingData |
| (void) | - setStringInput: |
| (void) | - allowStringInput: |
| (enum StringInput) | - allowingStringInput |
| (NSString *) | - typedString |
| (void) | - resetTypedString |
| (void) | - setTypedString: |
| (void) | - noteMouseInteractionModeChangedFrom:to: |
| (void) | - pollControls |
| (void) | - setVirtualJoystick:vmy: |
| (NSPoint) | - virtualJoystickPosition |
| (void) | - clearKeys |
| (void) | - clearMouse |
| (void) | - clearKey: |
| (void) | - resetMouse |
| (BOOL) | - isAlphabetKeyDown |
| (void) | - suppressKeysUntilKeyUp |
| (BOOL) | - isDown: |
| (BOOL) | - isOptDown |
| (BOOL) | - isCtrlDown |
| (BOOL) | - isCommandDown |
| (BOOL) | - isShiftDown |
| (BOOL) | - isCapsLockOn |
| (BOOL) | - lastKeyWasShifted |
| (int) | - numKeys |
| (int) | - mouseWheelState |
| (float) | - mouseWheelDelta |
| (void) | - setMouseWheelDelta: |
| (BOOL) | - isCommandQDown |
| (BOOL) | - isCommandFDown |
| (void) | - clearCommandF |
| (void) | - setMouseInDeltaMode: |
| (void) | - handleStringInput:keyID: |
Definition at line 28 of file MyOpenGLView+Input.h.
| - (enum StringInput) allowingStringInput |
Extends class MyOpenGLView.
Definition at line 70 of file MyOpenGLView+Input.m.
References allowingStringInput.
Referenced by allowingStringInput, allowStringInput:, handleStringInput:keyID:, MyOpenGLView::init, pollControls, and setStringInput:.
| - (void) allowStringInput: | (BOOL) | value |
Extends class MyOpenGLView.
Definition at line 63 of file MyOpenGLView+Input.m.
References allowingStringInput, gvStringInputAlpha, and gvStringInputNo.
| - (void) autoShowMouse |
Extends class MyOpenGLView.
Definition at line 48 of file MyOpenGLView+Input.m.
References autoShowMouse.
Referenced by autoShowMouse.
| - (void) clearCommandF |
Extends class MyOpenGLView.
Definition at line 221 of file MyOpenGLView+Input.m.
References clearCommandF.
Referenced by clearCommandF.
| - (void) clearKey: | (int) | theKey |
Extends class MyOpenGLView.
Definition at line 115 of file MyOpenGLView+Input.m.
References numKeys.
| - (void) clearKeys |
Extends class MyOpenGLView.
Definition at line 102 of file MyOpenGLView+Input.m.
References clearKeys, and MyOpenGLView::numKeys.
Referenced by clearKeys.
| - (void) clearMouse |
Extends class MyOpenGLView.
Definition at line 109 of file MyOpenGLView+Input.m.
References clearMouse.
Referenced by clearMouse.
| - (void) handleStringInput: | (SDL_KeyboardEvent*) | kbd_event | |
| keyID: | (Uint16) | key_id |
Extends class MyOpenGLView.
Definition at line 862 of file MyOpenGLView+Input.m.
References allowingStringInput, gvStringInputAll, gvStringInputAlpha, isAlphabetKeyDown, and typedString.
| - (void) initKeyMappingData |
Extends class MyOpenGLView.
Definition at line 30 of file MyOpenGLView+Input.m.
References ResourceManager::dictionaryFromFilesNamed:inFolder:mergeMode:cache:, and initKeyMappingData.
Referenced by initKeyMappingData.
| - (BOOL) isAlphabetKeyDown |
Extends class MyOpenGLView.
Definition at line 133 of file MyOpenGLView+Input.m.
References isAlphabetKeyDown.
Referenced by handleStringInput:keyID:, MyOpenGLView::init, and isAlphabetKeyDown.
| - (BOOL) isCapsLockOn |
Extends class MyOpenGLView.
Definition at line 178 of file MyOpenGLView+Input.m.
References isCapsLockOn.
Referenced by isCapsLockOn, and pollControls.
| - (BOOL) isCommandDown |
Extends class MyOpenGLView.
Definition at line 170 of file MyOpenGLView+Input.m.
References isCommandDown.
Referenced by isCommandDown.
| - (BOOL) isCommandFDown |
Extends class MyOpenGLView.
Definition at line 217 of file MyOpenGLView+Input.m.
References isCommandFDown.
Referenced by isCommandFDown.
| - (BOOL) isCommandQDown |
Extends class MyOpenGLView.
Definition at line 213 of file MyOpenGLView+Input.m.
References isCommandQDown.
Referenced by isCommandQDown.
| - (BOOL) isCtrlDown |
Extends class MyOpenGLView.
Definition at line 166 of file MyOpenGLView+Input.m.
References isCtrlDown.
Referenced by isCtrlDown.
| - (BOOL) isDown: | (int) | key |
Extends class MyOpenGLView.
Definition at line 152 of file MyOpenGLView+Input.m.
References numKeys.
| - (BOOL) isOptDown |
Extends class MyOpenGLView.
Definition at line 162 of file MyOpenGLView+Input.m.
References isOptDown.
Referenced by isOptDown.
| - (BOOL) isShiftDown |
Extends class MyOpenGLView.
Definition at line 174 of file MyOpenGLView+Input.m.
References isShiftDown.
Referenced by isShiftDown.
| - (BOOL) lastKeyWasShifted |
Extends class MyOpenGLView.
Definition at line 188 of file MyOpenGLView+Input.m.
References lastKeyWasShifted.
Referenced by lastKeyWasShifted.
| - (float) mouseWheelDelta |
Extends class MyOpenGLView.
Definition at line 205 of file MyOpenGLView+Input.m.
References mouseWheelDelta, and OOMOUSEWHEEL_DELTA.
Referenced by mouseWheelDelta.
| - (int) mouseWheelState |
Extends class MyOpenGLView.
Definition at line 196 of file MyOpenGLView+Input.m.
References gvMouseWheelDown, gvMouseWheelNeutral, gvMouseWheelUp, int(), and mouseWheelState.
Referenced by mouseWheelState.
| - (void) noteMouseInteractionModeChangedFrom: | (OOMouseInteractionMode) | oldMode | |
| to: | (OOMouseInteractionMode) | newMode |
Extends class MyOpenGLView.
Definition at line 86 of file MyOpenGLView+Input.m.
References MyOpenGLView::autoShowMouse, and MyOpenGLView::setMouseInDeltaMode:.
| - (int) numKeys |
Extends class MyOpenGLView.
Definition at line 192 of file MyOpenGLView+Input.m.
References int(), NUM_KEYS, and numKeys.
Referenced by clearKey:, isDown:, numKeys, and pollControls.
| - (void) pollControls |
Extends class MyOpenGLView.
Definition at line 225 of file MyOpenGLView+Input.m.
References allowingStringInput, gvArrowKeyDown, gvArrowKeyLeft, gvArrowKeyRight, gvArrowKeyUp, gvBackspaceKey, gvDeleteKey, gvEndKey, gvFunctionKey1, gvFunctionKey10, gvFunctionKey11, gvFunctionKey2, gvFunctionKey3, gvFunctionKey4, gvFunctionKey5, gvFunctionKey6, gvFunctionKey7, gvFunctionKey8, gvFunctionKey9, gvHomeKey, gvInsertKey, gvNumberKey0, gvNumberKey1, gvNumberKey2, gvNumberKey3, gvNumberKey4, gvNumberKey5, gvNumberKey6, gvNumberKey7, gvNumberKey8, gvNumberKey9, gvNumberPadKey0, gvNumberPadKey1, gvNumberPadKey2, gvNumberPadKey3, gvNumberPadKey4, gvNumberPadKey5, gvNumberPadKey6, gvNumberPadKey7, gvNumberPadKey8, gvNumberPadKey9, gvNumberPadKeyDivide, gvNumberPadKeyEnter, gvNumberPadKeyEquals, gvNumberPadKeyMinus, gvNumberPadKeyMultiply, gvNumberPadKeyPeriod, gvNumberPadKeyPlus, gvPageDownKey, gvPageUpKey, gvPauseKey, OOSDLJoystickManager::handleSDLEvent:, MyOpenGLView::handleStringInput:keyID:, isCapsLockOn, kOOLogKeyDown, kOOLogKeyUp, MAIN_GUI_PIXEL_HEIGHT, MAIN_GUI_PIXEL_WIDTH, MOUSE_DOUBLE_CLICK_INTERVAL, MOUSEX_MAXIMUM, MOUSEY_MAXIMUM, numKeys, OOLog, OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL, pollControls, MyOpenGLView::resetMouse, MyOpenGLView::saveWindowSize:, MyOpenGLView::setVirtualJoystick:vmy:, OOJoystickManager::sharedStickHandler, MyOpenGLView::toggleScreenMode, MyOpenGLView::updateGLSize:, and virtualJoystickPosition.
Referenced by pollControls.
| - (void) resetMouse |
Extends class MyOpenGLView.
Definition at line 121 of file MyOpenGLView+Input.m.
References resetMouse, and MyOpenGLView::setVirtualJoystick:vmy:.
Referenced by resetMouse.
| - (void) resetTypedString |
Extends class MyOpenGLView.
Definition at line 78 of file MyOpenGLView+Input.m.
References resetTypedString.
Referenced by resetTypedString.
| - (void) setMouseInDeltaMode: | (BOOL) | inDelta |
Extends class MyOpenGLView.
Definition at line 897 of file MyOpenGLView+Input.m.
| - (void) setMouseWheelDelta: | (float) | newWheelDelta |
Extends class MyOpenGLView.
Definition at line 209 of file MyOpenGLView+Input.m.
References OOMOUSEWHEEL_DELTA.
| - (void) setStringInput: | (enum StringInput) | value |
Extends class MyOpenGLView.
Definition at line 59 of file MyOpenGLView+Input.m.
References allowingStringInput.
| - (void) setTypedString: | (NSString*) | value |
Extends class MyOpenGLView.
Definition at line 82 of file MyOpenGLView+Input.m.
| - (void) setVirtualJoystick: | (double) | vmx | |
| vmy: | (double) | vmy |
Extends class MyOpenGLView.
Definition at line 91 of file MyOpenGLView+Input.m.
References virtualJoystickPosition.
| - (void) suppressKeysUntilKeyUp |
Extends class MyOpenGLView.
Definition at line 143 of file MyOpenGLView+Input.m.
References MyOpenGLView::clearKeys, MyOpenGLView::clearMouse, gvMouseDoubleClick, and suppressKeysUntilKeyUp.
Referenced by suppressKeysUntilKeyUp.
| - (NSString *) typedString |
Extends class MyOpenGLView.
Definition at line 74 of file MyOpenGLView+Input.m.
References typedString.
Referenced by MyOpenGLView::dealloc, PlayerEntity(KeyMapper)::handleKeyConfigEntryKeys:view:, handleStringInput:keyID:, MyOpenGLView::init, PlayerEntity(OOControlsPrivate)::pollDemoControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, PlayerEntity(Scripting)::refreshMissionScreenTextEntry, PlayerEntity(LoadSave)::saveCommanderInputHandler, PlayerEntity(KeyMapper)::setGuiToKeyConfigEntryScreen, and typedString.
| - (NSPoint) virtualJoystickPosition |
Extends class MyOpenGLView.
Definition at line 96 of file MyOpenGLView+Input.m.
References virtualJoystickPosition.
Referenced by MyOpenGLView::init, pollControls, PlayerEntity(OOControlsPrivate)::pollCustomViewControls, PlayerEntity(OOControlsPrivate)::pollFlightArrowKeyControls:, PlayerEntity(OOControlsPrivate)::pollGuiArrowKeyControls:, setVirtualJoystick:vmy:, and virtualJoystickPosition.