Oolite
Loading...
Searching...
No Matches
PlayerEntityStickProfile.h
Go to the documentation of this file.
1
/*
2
3
PlayerEntityStickProfile.h
4
5
GUI for managing joystick profile settings
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
#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
43
OOJoystickManager
*
stickHandler
;
44
NSUInteger
current_axis
;
45
OOJoystickAxisProfile
*
profiles
[3][2];
46
GuiDisplayGen
*
gui
;
47
NSRect
graphRect
;
48
NSInteger
selected_control_point
;
49
NSInteger
dragged_control_point
;
50
NSInteger
double_click_control_point
;
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
GuiDisplayGen.h
MyOpenGLView.h
OOJoystickProfile.h
PlayerEntity.h
Universe.h
GuiDisplayGen
Definition
GuiDisplayGen.h:164
MyOpenGLView
Definition
MyOpenGLView.h:164
OOJoystickAxisProfile
Definition
OOJoystickProfile.h:43
OOJoystickManager
Definition
OOJoystickManager.h:167
StickProfileScreen
Definition
PlayerEntityStickProfile.h:41
StickProfileScreen::selected_control_point
NSInteger selected_control_point
Definition
PlayerEntityStickProfile.h:48
StickProfileScreen::double_click_control_point
NSInteger double_click_control_point
Definition
PlayerEntityStickProfile.h:50
StickProfileScreen::current_axis
NSUInteger current_axis
Definition
PlayerEntityStickProfile.h:44
StickProfileScreen::profiles
OOJoystickAxisProfile * profiles[3][2]
Definition
PlayerEntityStickProfile.h:45
StickProfileScreen::stickHandler
OOJoystickManager * stickHandler
Definition
PlayerEntityStickProfile.h:43
StickProfileScreen::gui
GuiDisplayGen * gui
Definition
PlayerEntityStickProfile.h:46
StickProfileScreen::graphRect
NSRect graphRect
Definition
PlayerEntityStickProfile.h:47
StickProfileScreen::dragged_control_point
NSInteger dragged_control_point
Definition
PlayerEntityStickProfile.h:49
Vector
Definition
OOVector.h:31
src
Core
Entities
PlayerEntityStickProfile.h
Generated by
1.15.0