Oolite
1.91.0.7659-250410-0031890
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
g
k
m
o
r
s
t
w
Enumerator
a
b
c
d
e
g
j
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
Core
OOMouseInteractionMode.m
Go to the documentation of this file.
1
/*
2
3
OOMouseInteractionMode.m
4
5
6
Oolite
7
Copyright (C) 2004-2013 Giles C Williams and contributors
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
MA 02110-1301, USA.
23
24
*/
25
26
#import "
OOMouseInteractionMode.h
"
27
28
29
NSString *
OOStringFromMouseInteractionMode
(
OOMouseInteractionMode
mode
)
30
{
31
switch
(
mode
)
32
{
33
case
MOUSE_MODE_UI_SCREEN_NO_INTERACTION
:
return
@"UI_SCREEN_NO_INTERACTION"
;
34
case
MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
:
return
@"UI_SCREEN_WITH_INTERACTION"
;
35
case
MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
:
return
@"FLIGHT_NO_MOUSE_CONTROL"
;
36
case
MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
:
return
@"FLIGHT_WITH_MOUSE_CONTROL"
;
37
}
38
39
return
[NSString stringWithFormat:@"<unknown mode %u>", mode];
40
}
29
NSString *
OOStringFromMouseInteractionMode
(
OOMouseInteractionMode
mode
) {
…
}
41
42
43
BOOL
OOMouseInteractionModeIsUIScreen
(
OOMouseInteractionMode
mode
)
44
{
45
switch
(
mode
)
46
{
47
case
MOUSE_MODE_UI_SCREEN_NO_INTERACTION
:
return
YES;
48
case
MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
:
return
YES;
49
case
MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
:
return
NO;
50
case
MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
:
return
NO;
51
}
52
53
return
NO;
54
}
43
BOOL
OOMouseInteractionModeIsUIScreen
(
OOMouseInteractionMode
mode
) {
…
}
55
56
57
BOOL
OOMouseInteractionModeIsFlightMode
(
OOMouseInteractionMode
mode
)
58
{
59
switch
(
mode
)
60
{
61
case
MOUSE_MODE_UI_SCREEN_NO_INTERACTION
:
return
NO;
62
case
MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
:
return
NO;
63
case
MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
:
return
YES;
64
case
MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
:
return
YES;
65
}
66
67
return
NO;
68
}
57
BOOL
OOMouseInteractionModeIsFlightMode
(
OOMouseInteractionMode
mode
) {
…
}
OOMouseInteractionMode.h
OOMouseInteractionMode
OOMouseInteractionMode
Definition
OOMouseInteractionMode.h:47
MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
@ MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
Definition
OOMouseInteractionMode.h:51
MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
@ MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
Definition
OOMouseInteractionMode.h:50
MOUSE_MODE_UI_SCREEN_NO_INTERACTION
@ MOUSE_MODE_UI_SCREEN_NO_INTERACTION
Definition
OOMouseInteractionMode.h:48
MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
@ MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
Definition
OOMouseInteractionMode.h:49
OOMouseInteractionModeIsFlightMode
BOOL OOMouseInteractionModeIsFlightMode(OOMouseInteractionMode mode)
Definition
OOMouseInteractionMode.m:57
OOMouseInteractionModeIsUIScreen
BOOL OOMouseInteractionModeIsUIScreen(OOMouseInteractionMode mode)
Definition
OOMouseInteractionMode.m:43
OOStringFromMouseInteractionMode
NSString * OOStringFromMouseInteractionMode(OOMouseInteractionMode mode)
Definition
OOMouseInteractionMode.m:29
mode
const char int mode
Definition
ioapi.h:133
Generated by
1.13.2