Line data Source code
1 0 : /* 2 : 3 : PlayerEntityControls.h 4 : 5 : Input management methods. 6 : 7 : Oolite 8 : Copyright (C) 2004-2013 Giles C Williams and contributors 9 : 10 : This program is free software; you can redistribute it and/or 11 : modify it under the terms of the GNU General Public License 12 : as published by the Free Software Foundation; either version 2 13 : of the License, or (at your option) any later version. 14 : 15 : This program is distributed in the hope that it will be useful, 16 : but WITHOUT ANY WARRANTY; without even the implied warranty of 17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 : GNU General Public License for more details. 19 : 20 : You should have received a copy of the GNU General Public License 21 : along with this program; if not, write to the Free Software 22 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 : MA 02110-1301, USA. 24 : 25 : */ 26 : 27 : #include "PlayerEntity.h" 28 : 29 : 30 : @interface PlayerEntity (Controls) 31 : 32 0 : - (void) initControls; 33 0 : - (void) initKeyConfigSettings; 34 : 35 0 : - (void) pollControls:(double)delta_t; 36 0 : - (BOOL) handleGUIUpDownArrowKeys; 37 0 : - (void) clearPlanetSearchString; 38 0 : - (void) targetNewSystem:(int) direction; 39 0 : - (void) switchToMainView; 40 0 : - (void) noteSwitchToView:(OOViewID)toView fromView:(OOViewID)fromView; 41 0 : - (void) beginWitchspaceCountdown:(int)spin_time; 42 0 : - (void) beginWitchspaceCountdown; 43 0 : - (void) cancelWitchspaceCountdown; 44 0 : - (NSArray*) processKeyCode:(NSArray*)key_def; 45 0 : - (BOOL) checkNavKeyPress:(NSArray*)key_def; 46 0 : - (BOOL) checkKeyPress:(NSArray*)key_def; 47 0 : - (BOOL) checkKeyPress:(NSArray*)key_def fKey_only:(BOOL)fKey_only; 48 0 : - (BOOL) checkKeyPress:(NSArray*)key_def ignore_ctrl:(BOOL)ignore_ctrl; 49 0 : - (BOOL) checkKeyPress:(NSArray*)key_def fKey_only:(BOOL)fKey_only ignore_ctrl:(BOOL)ignore_ctrl; 50 0 : - (int) getFirstKeyCode:(NSArray*)key_def; 51 : 52 : @end