Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
OOMouseInteractionMode.m File Reference
+ Include dependency graph for OOMouseInteractionMode.m:

Go to the source code of this file.

Functions

NSString * OOStringFromMouseInteractionMode (OOMouseInteractionMode mode)
 
BOOL OOMouseInteractionModeIsUIScreen (OOMouseInteractionMode mode)
 
BOOL OOMouseInteractionModeIsFlightMode (OOMouseInteractionMode mode)
 

Function Documentation

◆ OOMouseInteractionModeIsFlightMode()

BOOL OOMouseInteractionModeIsFlightMode ( OOMouseInteractionMode mode)

Definition at line 57 of file OOMouseInteractionMode.m.

58{
59 switch (mode)
60 {
65 }
66
67 return NO;
68}
@ MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL
@ MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL
@ MOUSE_MODE_UI_SCREEN_NO_INTERACTION
@ MOUSE_MODE_UI_SCREEN_WITH_INTERACTION
const char int mode
Definition ioapi.h:133

References MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL, MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL, MOUSE_MODE_UI_SCREEN_NO_INTERACTION, and MOUSE_MODE_UI_SCREEN_WITH_INTERACTION.

◆ OOMouseInteractionModeIsUIScreen()

BOOL OOMouseInteractionModeIsUIScreen ( OOMouseInteractionMode mode)

◆ OOStringFromMouseInteractionMode()

NSString * OOStringFromMouseInteractionMode ( OOMouseInteractionMode mode)

Definition at line 29 of file OOMouseInteractionMode.m.

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}

References MOUSE_MODE_FLIGHT_NO_MOUSE_CONTROL, MOUSE_MODE_FLIGHT_WITH_MOUSE_CONTROL, MOUSE_MODE_UI_SCREEN_NO_INTERACTION, and MOUSE_MODE_UI_SCREEN_WITH_INTERACTION.