Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOMouseInteractionMode.m
Go to the documentation of this file.
1/*
2
3OOMouseInteractionMode.m
4
5
6Oolite
7Copyright (C) 2004-2013 Giles C Williams and contributors
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22MA 02110-1301, USA.
23
24*/
25
27
28
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}
41
42
44{
45 switch (mode)
46 {
51 }
52
53 return NO;
54}
55
56
58{
59 switch (mode)
60 {
65 }
66
67 return NO;
68}
OOMouseInteractionMode
@ MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
@ MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
@ MOUSE_MODE_UI_SCREEN_NO_INTERACTION
@ MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
BOOL OOMouseInteractionModeIsFlightMode(OOMouseInteractionMode mode)
BOOL OOMouseInteractionModeIsUIScreen(OOMouseInteractionMode mode)
NSString * OOStringFromMouseInteractionMode(OOMouseInteractionMode mode)
const char int mode
Definition ioapi.h:133