Oolite
Loading...
Searching...
No Matches
PlayerEntityStickProfile.h
Go to the documentation of this file.
1/*
2
3PlayerEntityStickProfile.h
4
5GUI for managing joystick profile settings
6
7Oolite
8Copyright (C) 2004-2013 Giles C Williams and contributors
9
10This program is free software; you can redistribute it and/or
11modify it under the terms of the GNU General Public License
12as published by the Free Software Foundation; either version 2
13of the License, or (at your option) any later version.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23MA 02110-1301, USA.
24
25*/
26
27#import "GuiDisplayGen.h"
28#import "MyOpenGLView.h"
29#import "OOJoystickProfile.h"
30#import "PlayerEntity.h"
31#import "Universe.h"
32
33@interface PlayerEntity (StickProfile)
34
35- (void)setGuiToStickProfileScreen:(GuiDisplayGen*)gui;
36- (void)stickProfileInputHandler:(GuiDisplayGen*)gui view:(MyOpenGLView*)gameView;
37- (void)stickProfileGraphAxisProfile:(GLfloat)alpha screenAt:(Vector)screenAt screenSize:(NSSize)screenSize;
38
39@end
40
41@interface StickProfileScreen : NSObject {
42@private
44 NSUInteger current_axis;
47 NSRect graphRect;
51}
52
53- (id)init;
54- (void)dealloc;
55- (void)startGui:(GuiDisplayGen*)gui_display_gen;
56- (void)mouseDown:(NSPoint)position;
57- (void)mouseUp;
58- (void)deleteSelected;
59
60@end
OOJoystickAxisProfile * profiles[3][2]
OOJoystickManager * stickHandler