Oolite 1.91.0.7604-240417-a536cbe
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 "PlayerEntity.h"
28#import "GuiDisplayGen.h"
29#import "MyOpenGLView.h"
30#import "OOJoystickProfile.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{
43@private
45 NSUInteger current_axis;
46 OOJoystickAxisProfile *profiles[3][2];
48 NSRect graphRect;
52}
53
54- (id) init;
55- (void) dealloc;
56- (void) startGui: (GuiDisplayGen *) gui_display_gen;
57- (void) mouseDown: (NSPoint) position;
58- (void) mouseUp;
59- (void) deleteSelected;
60
61@end
62
OOJoystickManager * stickHandler