Oolite
Loading...
Searching...
No Matches
PlayerEntityStickProfile.m
Go to the documentation of this file.
1/*
2
3PlayerEntityStickProfile.m
4
5Oolite
6Copyright (C) 2004-2013 Giles C Williams and contributors
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; either version 2
11of the License, or (at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program; if not, write to the Free Software
20Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21MA 02110-1301, USA.
22
23*/
24
26#import "HeadUpDisplay.h"
27#import "OOJoystickManager.h"
28#import "OOJoystickProfile.h"
29#import "OOMacroOpenGL.h"
30#import "OOOpenGL.h"
31#import "PlayerEntity.h"
33#import "PlayerEntitySound.h"
35
36#define GUI_ROW_STICKPROFILE_BACK 20
37#define GUI_ROW_STICKPROFILE_AXIS 1
38#define GUI_ROW_STICKPROFILE_DEADZONE 2
39#define GUI_ROW_STICKPROFILE_PROFILE_TYPE 3
40#define GUI_ROW_STICKPROFILE_POWER 4
41#define GUI_ROW_STICKPROFILE_PARAM 5
42
44
45@interface StickProfileScreen (StickProfileInternal)
46
47- (void)showScreen;
48- (void)nextAxis;
49- (NSString*)currentAxis;
50- (void)previousAxis;
51- (void)increaseDeadzone;
52- (void)decreaseDeadzone;
53- (void)nextProfileType;
55- (void)IncreasePower;
57- (void)DecreasePower;
58- (void)IncreaseParam;
59- (void)DecreaseParam;
60- (void)saveSettings;
61- (void)graphProfile:(GLfloat)alpha at:(Vector)at size:(NSSize)size;
62- (void)startEdit;
63- (NSString*)profileType;
64
65@end
66
67@implementation PlayerEntity (StickProfile)
68
69- (void)setGuiToStickProfileScreen:(GuiDisplayGen*)gui
70{
71 gui_screen = GUI_SCREEN_STICKPROFILE;
72 [stickProfileScreen startGui:gui];
73 return;
74}
75
76- (void)stickProfileInputHandler:(GuiDisplayGen*)gui
77 view:(MyOpenGLView*)gameView
78{
79 if ([gameView isDown:gvMouseLeftButton]) {
80 NSPoint mouse_position = NSMakePoint(
81 [gameView virtualJoystickPosition].x * [gui size].width,
82 [gameView virtualJoystickPosition].y * [gui size].height);
83 [stickProfileScreen mouseDown:mouse_position];
84 } else {
85 [stickProfileScreen mouseUp];
86 }
87 if ([gameView isDown:gvDeleteKey]) {
88 [stickProfileScreen deleteSelected];
89 }
91
92 if ([self checkKeyPress:n_key_gui_select] && [gui selectedRow] == GUI_ROW_STICKPROFILE_BACK) {
93 [stickProfileScreen saveSettings];
95 }
96 switch ([gui selectedRow]) {
98 if ([self checkKeyPress:n_key_gui_arrow_left]) {
99 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_right]) {
100 [stickProfileScreen previousAxis];
102 }
103 } else if ([self checkKeyPress:n_key_gui_arrow_right]) {
104 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_left]) {
105 [stickProfileScreen nextAxis];
107 }
108 } else {
110 }
111 break;
112
114 if ([self checkKeyPress:n_key_gui_arrow_left]) {
115 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_right]) {
116 [stickProfileScreen decreaseDeadzone];
118 }
119 } else if ([self checkKeyPress:n_key_gui_arrow_right]) {
120 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_left]) {
121 [stickProfileScreen increaseDeadzone];
123 }
124 } else {
126 }
127 break;
128
130 if ([self checkKeyPress:n_key_gui_arrow_left]) {
131 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_right]) {
132 [stickProfileScreen previousProfileType];
134 }
135 } else if ([self checkKeyPress:n_key_gui_arrow_right]) {
136 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_left]) {
137 [stickProfileScreen nextProfileType];
139 }
140 } else {
142 }
143 break;
144 }
145
146 if (![stickProfileScreen currentProfileIsSpline]) {
147 if ([gui selectedRow] == GUI_ROW_STICKPROFILE_POWER) {
148 if ([self checkKeyPress:n_key_gui_arrow_left]) {
149 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_right]) {
150 [stickProfileScreen DecreasePower];
152 }
153 } else if ([self checkKeyPress:n_key_gui_arrow_right]) {
154 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_left]) {
155 [stickProfileScreen IncreasePower];
157 }
158 } else {
160 }
161 } else if ([gui selectedRow] == GUI_ROW_STICKPROFILE_PARAM) {
162 if ([self checkKeyPress:n_key_gui_arrow_left]) {
163 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_right]) {
164 [stickProfileScreen DecreaseParam];
166 }
167 } else if ([self checkKeyPress:n_key_gui_arrow_right]) {
168 if (!stickProfileArrow_pressed && ![self checkKeyPress:n_key_gui_arrow_left]) {
169 [stickProfileScreen IncreaseParam];
171 }
172 } else {
174 }
175 }
176 }
177 return;
178}
179
180- (void)stickProfileGraphAxisProfile:(GLfloat)alpha screenAt:(Vector)screenAt screenSize:(NSSize)screenSize
181{
182
183 [stickProfileScreen graphProfile:alpha at:make_vector(screenAt.x - 110.0, screenAt.y - 100, screenAt.z) size:NSMakeSize(220, 220)];
184 return;
185}
186
187@end
188
189@implementation StickProfileScreen
190
191- (id)init
192{
193 int i, j;
194
195 if ((self = [super init])) {
198 for (i = 0; i < 3; i++) {
199 for (j = 0; j < 2; j++) {
200 profiles[i][j] = nil;
201 }
202 }
203 }
204 return self;
205}
206
207- (void)dealloc
208{
209 int i, j;
210 for (i = 0; i < 3; i++) {
211 for (j = 0; j < 2; j++) {
212 [profiles[i][j] release];
213 }
214 }
215 [super dealloc];
216}
217- (void)startGui:(GuiDisplayGen*)gui_display_gen
218{
219 gui = gui_display_gen;
220 [self startEdit];
221 [gui clear];
222 [gui setTitle:DESC(@"oolite-stickprofile-title")];
223 [self showScreen];
224 [gui setSelectedRow:GUI_ROW_STICKPROFILE_AXIS];
225 return;
226}
227
228- (void)mouseDown:(NSPoint)position
229{
230 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
231 OOJoystickSplineAxisProfile* spline_profile;
232 NSPoint spline_position;
233
234 if (![profile isKindOfClass:[OOJoystickSplineAxisProfile class]]) {
235 return;
236 }
237 spline_profile = (OOJoystickSplineAxisProfile*)profile;
238 spline_position.x = (position.x - graphRect.origin.x - 10) / (graphRect.size.width - 20);
239 spline_position.y = (-position.y - graphRect.origin.y - 10) / (graphRect.size.height - 20);
240 if (spline_position.x >= 0.0 && spline_position.x <= 1.0 && spline_position.y >= 0.0 && spline_position.y <= 1.0) {
241 if (dragged_control_point < 0) {
245 } else {
246 [spline_profile moveControl:dragged_control_point point:spline_position];
247 }
249 }
250 return;
251}
252
253- (void)mouseUp
254{
255 if (selected_control_point >= 0) {
257 }
259 return;
260}
261
263{
264 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
265 OOJoystickSplineAxisProfile* spline_profile;
266 if ([profile isKindOfClass:[OOJoystickSplineAxisProfile class]] && selected_control_point >= 0) {
267 spline_profile = (OOJoystickSplineAxisProfile*)profile;
268 [spline_profile removeControl:selected_control_point];
272 }
273 return;
274}
275
276@end
277
278@implementation StickProfileScreen (StickProfileInternal)
279
280- (void)nextAxis
281{
282 if (current_axis == AXIS_ROLL)
283 current_axis = AXIS_PITCH;
284 else if (current_axis == AXIS_PITCH)
285 current_axis = AXIS_YAW;
286 [self showScreen];
287 return;
288}
289
291{
292 if (current_axis == AXIS_PITCH)
293 current_axis = AXIS_ROLL;
294 else if (current_axis == AXIS_YAW)
295 current_axis = AXIS_PITCH;
296 [self showScreen];
297 return;
298}
299
300- (NSString*)currentAxis
301{
302 switch (current_axis) {
303 case AXIS_ROLL:
304 return DESC(@"stickmapper-roll");
305
306 case AXIS_PITCH:
307 return DESC(@"stickmapper-pitch");
308
309 case AXIS_YAW:
310 return DESC(@"stickmapper-yaw");
311 }
312 return @"";
313}
314
316{
317 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
318 if (profile) {
319 [profile setDeadzone:[profile deadzone] + STICK_MAX_DEADZONE / 20];
320 }
321 [self showScreen];
322 return;
323}
324
326{
327 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
328 if (profile) {
329 [profile setDeadzone:[profile deadzone] - STICK_MAX_DEADZONE / 20];
330 }
331 [self showScreen];
332 return;
333}
334
336{
337 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
338 double deadzone;
339
340 if ([profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
341 deadzone = [profile deadzone];
342 [profiles[current_axis][0] release];
343 profiles[current_axis][0] = [profile retain];
344 if (!profiles[current_axis][1]) {
345 profiles[current_axis][1] = [[OOJoystickSplineAxisProfile alloc] init];
346 }
347 [profiles[current_axis][1] setDeadzone:deadzone];
348 [stickHandler setProfile:profiles[current_axis][1] forAxis:current_axis];
349 [stickHandler saveStickSettings];
350 }
351 [self showScreen];
352 return;
353}
354
356{
357 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
358 double deadzone;
359
360 if ([profile isKindOfClass:[OOJoystickSplineAxisProfile class]]) {
361 deadzone = [profile deadzone];
362 [profiles[current_axis][1] release];
363 profiles[current_axis][1] = [profile retain];
364 if (!profiles[current_axis][0]) {
365 profiles[current_axis][0] = [[OOJoystickStandardAxisProfile alloc] init];
366 }
367 [profiles[current_axis][0] setDeadzone:deadzone];
368 [stickHandler setProfile:profiles[current_axis][0] forAxis:current_axis];
369 [stickHandler saveStickSettings];
370 }
371 [self showScreen];
372 return;
373}
374
376{
377 if ([[stickHandler getProfileForAxis:current_axis] isKindOfClass:[OOJoystickSplineAxisProfile class]]) {
378 return YES;
379 }
380 return NO;
381}
382
384{
385 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
386 OOJoystickStandardAxisProfile* standard_profile;
387
388 if (profile && [profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
389 standard_profile = (OOJoystickStandardAxisProfile*)profile;
390 [standard_profile setPower:[standard_profile power] + STICKPROFILE_MAX_POWER / 20];
391 [stickHandler saveStickSettings];
392 }
393 [self showScreen];
394 return;
395}
396
398{
399 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
400 OOJoystickStandardAxisProfile* standard_profile;
401
402 if (profile && [profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
403 standard_profile = (OOJoystickStandardAxisProfile*)profile;
404 [standard_profile setPower:[standard_profile power] - STICKPROFILE_MAX_POWER / 20];
405 [stickHandler saveStickSettings];
406 }
407 [self showScreen];
408 return;
409}
410
412{
413 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
414 OOJoystickStandardAxisProfile* standard_profile;
415
416 if (profile && [profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
417 standard_profile = (OOJoystickStandardAxisProfile*)profile;
419 [stickHandler saveStickSettings];
420 }
421 [self showScreen];
422 return;
423}
424
426{
427 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
428 OOJoystickStandardAxisProfile* standard_profile;
429
430 if (profile && [profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
431 standard_profile = (OOJoystickStandardAxisProfile*)profile;
433 [stickHandler saveStickSettings];
434 }
435 [self showScreen];
436 return;
437}
438
439- (void)graphProfile:(GLfloat)alpha at:(Vector)at size:(NSSize)size
440{
441 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
442 OOJoystickSplineAxisProfile* spline_profile;
443 NSInteger i;
444 NSPoint point;
445 NSArray* control_points;
446
447 if (!profile)
448 return;
449 graphRect = NSMakeRect(at.x, at.y, size.width, size.height);
451 OOGL(glColor4f(0.2, 0.2, 0.5, alpha));
452 OOGLBEGIN(GL_QUADS);
453 glVertex3f(at.x, at.y, at.z);
454 glVertex3f(at.x + size.width, at.y, at.z);
455 glVertex3f(at.x + size.width, at.y + size.height, at.z);
456 glVertex3f(at.x, at.y + size.height, at.z);
457 OOGLEND();
458 OOGL(glColor4f(0.9, 0.9, 0.9, alpha));
459 OOGL(GLScaledLineWidth(2.0f));
460 OOGLBEGIN(GL_LINE_STRIP);
461 for (i = 0; i <= size.width - 20; i++) {
462 glVertex3f(at.x + i + 10, at.y + 10 + (size.height - 20) * [profile rawValue:((float)i) / (size.width - 20)], at.z);
463 }
464 OOGLEND();
465 OOGL(glColor4f(0.5, 0.0, 0.5, alpha));
466 GLDrawFilledOval(at.x + 10, at.y + 10, at.z, NSMakeSize(4, 4), 20);
467 GLDrawFilledOval(at.x + size.width - 10, at.y + size.height - 10, at.z, NSMakeSize(4, 4), 20);
468 if ([profile isKindOfClass:[OOJoystickSplineAxisProfile class]]) {
469 spline_profile = (OOJoystickSplineAxisProfile*)profile;
470 control_points = [spline_profile controlPoints];
471 for (i = 0; i < (NSInteger)[control_points count]; i++) {
472 if (i == selected_control_point) {
473 OOGL(glColor4f(1.0, 0.0, 0.0, alpha));
474 } else {
475 OOGL(glColor4f(0.0, 1.0, 0.0, alpha));
476 }
477 point = [[control_points objectAtIndex:i] pointValue];
478 GLDrawFilledOval(at.x + 10 + point.x * (size.width - 20), at.y + 10 + point.y * (size.height - 20), at.z, NSMakeSize(4, 4), 20);
479 }
480 }
481 OOGL(glColor4f(0.9, 0.9, 0.0, alpha));
482 OODrawStringAligned(DESC(@"oolite-stickprofile-movement"), at.x + size.width - 5, at.y, at.z, NSMakeSize(8, 10), YES);
483 OODrawString(DESC(@"oolite-stickprofile-response"), at.x, at.y + size.height - 10, at.z, NSMakeSize(8, 10));
484 return;
485}
486
488{
489 int i, j;
490
491 for (i = 0; i < 3; i++) {
492 for (j = 0; j < 2; j++) {
493 [profiles[i][j] release];
494 profiles[i][j] = nil;
495 }
496 }
497 current_axis = AXIS_ROLL;
498 selected_control_point = -1;
499 dragged_control_point = -1;
500 double_click_control_point = -1;
501 return;
502}
503
505{
506 [stickHandler saveStickSettings];
507 return;
508}
509
511{
512 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
513 OOJoystickStandardAxisProfile* standard_profile;
514 NSString* v1 = @"||||||||||||||||||||";
515 NSString* v2 = @"....................";
516 int bars;
517 double value;
518 double power;
519
520 OOGUITabStop tabStop[GUI_MAX_COLUMNS];
521 tabStop[0] = 50;
522 tabStop[1] = 140;
523 [gui setTabStops:tabStop];
524 [gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-stickprofile-axis"), [self currentAxis], nil] forRow:GUI_ROW_STICKPROFILE_AXIS];
525 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_AXIS];
526 value = [profile deadzone];
527 bars = (int)(20 * value / STICK_MAX_DEADZONE + 0.5);
528 if (bars < 0)
529 bars = 0;
530 if (bars > 20)
531 bars = 20;
532 [gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-stickprofile-deadzone"),
533 [NSString stringWithFormat:
534 @"%@%@ (%0.4f)",
535 [v1 substringToIndex:bars],
536 [v2 substringToIndex:20 - bars],
537 value],
538 nil]
539 forRow:GUI_ROW_STICKPROFILE_DEADZONE];
540 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_DEADZONE];
541 [gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-stickprofile-profile-type"), [self profileType], nil] forRow:GUI_ROW_STICKPROFILE_PROFILE_TYPE];
542 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_PROFILE_TYPE];
543 if ([profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
544 standard_profile = (OOJoystickStandardAxisProfile*)profile;
545 power = [standard_profile power];
546 bars = (int)(20 * power / STICKPROFILE_MAX_POWER + 0.5);
547 if (bars < 0)
548 bars = 0;
549 if (bars > 20)
550 bars = 20;
551 [gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-stickprofile-range"),
552 [NSString stringWithFormat:@"%@%@ (%.1f) ", [v1 substringToIndex:bars], [v2 substringToIndex:20 - bars], power],
553 nil]
554 forRow:GUI_ROW_STICKPROFILE_POWER];
555 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_POWER];
556 value = [standard_profile parameter];
557 bars = 20 * value;
558 if (bars < 0)
559 bars = 0;
560 if (bars > 20)
561 bars = 20;
562 [gui setArray:[NSArray arrayWithObjects:DESC(@"oolite-stickprofile-sensitivity"),
563 [NSString stringWithFormat:@"%@%@ (%0.2f) ", [v1 substringToIndex:bars], [v2 substringToIndex:20 - bars], value],
564 nil]
565 forRow:GUI_ROW_STICKPROFILE_PARAM];
566 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_PARAM];
567 [gui setColor:[OOColor yellowColor] forRow:GUI_ROW_STICKPROFILE_PARAM];
568 } else {
569 [gui setText:@"" forRow:GUI_ROW_STICKPROFILE_POWER];
570 [gui setKey:GUI_KEY_SKIP forRow:GUI_ROW_STICKPROFILE_POWER];
571 [gui setText:DESC(@"oolite-stickprofile-spline-instructions") forRow:GUI_ROW_STICKPROFILE_PARAM];
572 [gui setKey:GUI_KEY_SKIP forRow:GUI_ROW_STICKPROFILE_PARAM];
573 [gui setColor:[OOColor magentaColor] forRow:GUI_ROW_STICKPROFILE_PARAM];
574 }
575 [gui setText:DESC(@"gui-back") forRow:GUI_ROW_STICKPROFILE_BACK];
576 [gui setKey:GUI_KEY_OK forRow:GUI_ROW_STICKPROFILE_BACK];
577 [gui setSelectableRange:NSMakeRange(1, GUI_ROW_STICKPROFILE_BACK)];
578 [[UNIVERSE gameView] suppressKeysUntilKeyUp];
579 [gui setForegroundTextureKey:[PLAYER status] == STATUS_DOCKED ? @"docked_overlay" : @"paused_overlay"];
580 [gui setBackgroundTextureKey:@"settings"];
581 return;
582}
583
584- (NSString*)profileType
585{
586 OOJoystickAxisProfile* profile = [stickHandler getProfileForAxis:current_axis];
587
588 if ([profile isKindOfClass:[OOJoystickStandardAxisProfile class]]) {
589 return DESC(@"oolite-stickprofile-type-standard");
590 }
591 if ([profile isKindOfClass:[OOJoystickSplineAxisProfile class]]) {
592 return DESC(@"oolite-stickprofile-type-spline");
593 }
594 return DESC(@"oolite-stickprofile-type-standard");
595}
596
597@end
NSInteger OOGUITabStop
void OODrawStringAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
void OODrawString(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
@ gvMouseLeftButton
@ gvDeleteKey
#define STICK_MAX_DEADZONE
@ AXIS_PITCH
@ AXIS_YAW
@ AXIS_ROLL
#define STICKPROFILE_MAX_POWER
#define OO_ENTER_OPENGL()
#define OOGLBEGIN
Definition OOOpenGL.h:269
void GLDrawFilledOval(GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step)
Definition OOOpenGL.m:158
void GLScaledLineWidth(GLfloat width)
Definition OOOpenGL.m:206
#define OOGL(statement)
Definition OOOpenGL.h:262
#define OOGLEND
Definition OOOpenGL.h:270
return nil
float y
float x
#define GUI_ROW_STICKPROFILE_PARAM
static BOOL stickProfileArrow_pressed
#define GUI_ROW_STICKPROFILE_AXIS
#define GUI_ROW_STICKPROFILE_BACK
#define GUI_ROW_STICKPROFILE_DEADZONE
#define GUI_ROW_STICKPROFILE_PROFILE_TYPE
#define GUI_ROW_STICKPROFILE_POWER
#define DESC(key)
Definition Universe.h:832
BOOL setBackgroundTextureKey:(NSString *key)
BOOL setSelectedRow:(OOGUIRow row)
BOOL setForegroundTextureKey:(NSString *key)
void setText:forRow:(NSString *str,[forRow] OOGUIRow row)
void setSelectableRange:(NSRange range)
void setColor:forRow:(OOColor *color,[forRow] OOGUIRow row)
void setTitle:(NSString *str)
void setTabStops:(OOGUITabSettings stops)
void setArray:forRow:(NSArray *arr,[forRow] OOGUIRow row)
void setKey:forRow:(NSString *str,[forRow] OOGUIRow row)
OOColor * yellowColor()
Definition OOColor.m:279
OOColor * magentaColor()
Definition OOColor.m:284
void setDeadzone:(double newValue)
OOJoystickAxisProfile * getProfileForAxis:(int axis)
void moveControl:point:(NSInteger index,[point] NSPoint point)
void removeControl:(NSInteger index)
void setParameter:(double newValue)
void setGuiToStickMapperScreen:resetCurrentRow:(unsigned skip,[resetCurrentRow] BOOL resetCurrentRow)
OOJoystickAxisProfile * profiles[3][2]
OOJoystickManager * stickHandler
voidpf void uLong size
Definition ioapi.h:126
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
OOScalar x
Definition OOVector.h:32
OOScalar y
Definition OOVector.h:33
OOScalar z
Definition OOVector.h:34