Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
PlayerEntityControls.m File Reference
+ Include dependency graph for PlayerEntityControls.m:

Go to the source code of this file.

Classes

category  PlayerEntity(OOControlsPrivate)
 

Macros

#define CUSTOM_VIEW_ROTATE_SPEED   1.0
 
#define CUSTOM_VIEW_ZOOM_SPEED   5.0
 
#define CUSTOM_VIEW_SPEED_REDUCTION_FACTOR   0.3
 
#define LOAD_KEY_SETTING2(name, default_1, shift_1, mod1_1, default_2, shift_2, mod1_2)
 

Variables

static BOOL jump_pressed
 
static BOOL hyperspace_pressed
 
static BOOL galhyperspace_pressed
 
static BOOL pause_pressed
 
static BOOL prev_compass_mode_pressed
 
static BOOL next_compass_mode_pressed
 
static BOOL next_target_pressed
 
static BOOL previous_target_pressed
 
static BOOL prime_equipment_pressed
 
static BOOL activate_equipment_pressed
 
static BOOL mode_equipment_pressed
 
static BOOL fastactivate_a_pressed
 
static BOOL fastactivate_b_pressed
 
static BOOL next_missile_pressed
 
static BOOL fire_missile_pressed
 
static BOOL target_missile_pressed
 
static BOOL target_incoming_missile_pressed
 
static BOOL ident_pressed
 
static BOOL safety_pressed
 
static BOOL rotateCargo_pressed
 
static BOOL autopilot_key_pressed
 
static BOOL fast_autopilot_key_pressed
 
static BOOL docking_clearance_request_key_pressed
 
static BOOL dump_target_state_pressed
 
static BOOL dump_entity_list_pressed
 
static BOOL taking_snapshot
 
static BOOL hide_hud_pressed
 
static BOOL f_key_pressed
 
static BOOL m_key_pressed
 
static BOOL pling_pressed
 
static BOOL cursor_moving
 
static BOOL disc_operation_in_progress
 
static BOOL f9_key_pressed
 
static BOOL switching_resolution
 
static BOOL speech_settings_pressed
 
static BOOL wait_for_key_up
 
static BOOL upDownKeyPressed
 
static BOOL pageUpDownKeyPressed
 
static BOOL leftRightKeyPressed
 
static BOOL musicModeKeyPressed
 
static BOOL volumeControlPressed
 
static BOOL fovControlPressed
 
static BOOL hdrMaxBrightnessControlPressed
 
static BOOL hdrPaperWhiteControlPressed
 
static BOOL colorblindModeControlPressed
 
static BOOL shaderSelectKeyPressed
 
static BOOL selectPressed
 
static BOOL queryPressed
 
static BOOL spacePressed
 
static BOOL chartInfoPressed
 
static BOOL switching_chart_screens
 
static BOOL switching_status_screens
 
static BOOL switching_equipship_screens
 
static BOOL zoom_pressed
 
static BOOL customView_pressed
 
static BOOL weaponsOnlineToggle_pressed
 
static BOOL escapePodKey_pressed
 
static BOOL cycleMFD_pressed
 
static BOOL switchMFD_pressed
 
static BOOL mouse_left_down
 
static BOOL oxz_manager_pressed
 
static BOOL next_planet_info_pressed
 
static BOOL previous_planet_info_pressed
 
static BOOL home_info_pressed
 
static BOOL target_info_pressed
 
static BOOL extra_key_pressed
 
static BOOL extra_gui_key_pressed
 
static NSPoint mouse_click_position
 
static NSPoint centre_at_mouse_click
 
static NSUInteger searchStringLength
 
static double timeLastKeyPress
 
static int saved_view_direction
 
static double saved_script_time
 
static int saved_gui_screen
 
static OOWeaponFacing saved_weapon_facing
 
static int pressedArrow = 0
 
static BOOL mouse_x_axis_map_to_yaw = NO
 
static NSTimeInterval time_last_frame
 
static BOOL toggling_music
 
static BOOL playing_music
 
static BOOL autopilot_pause
 

Macro Definition Documentation

◆ CUSTOM_VIEW_ROTATE_SPEED

#define CUSTOM_VIEW_ROTATE_SPEED   1.0

Definition at line 69 of file PlayerEntityControls.m.

◆ CUSTOM_VIEW_SPEED_REDUCTION_FACTOR

#define CUSTOM_VIEW_SPEED_REDUCTION_FACTOR   0.3

Definition at line 71 of file PlayerEntityControls.m.

◆ CUSTOM_VIEW_ZOOM_SPEED

#define CUSTOM_VIEW_ZOOM_SPEED   5.0

Definition at line 70 of file PlayerEntityControls.m.

◆ LOAD_KEY_SETTING2

#define LOAD_KEY_SETTING2 ( name,
default_1,
shift_1,
mod1_1,
default_2,
shift_2,
mod1_2 )
Value:
lookup = [@#name substringFromIndex:2]; \
curr = (NSArray*)[[kdic2 objectForKey:lookup] copy]; \
key1 = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithUnsignedShort:default_1], @"key", [NSNumber numberWithBool:shift_1], @"shift", [NSNumber numberWithBool:mod1_1], @"mod1", [NSNumber numberWithBool:NO], @"mod2", nil]; \
[keyDef addObject:key1]; \
if (default_2 > 0) \
{ \
key2 = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithUnsignedShort:default_2], @"key", [NSNumber numberWithBool:shift_2], @"shift", [NSNumber numberWithBool:mod1_2], @"mod1", [NSNumber numberWithBool:NO], @"mod2", nil]; \
[keyDef addObject:key2]; \
} \
name = curr?:keyDef; \
[kdic2 setObject:curr?:keyDef forKey:lookup]; \
[keyDef release];

Variable Documentation

◆ activate_equipment_pressed

BOOL activate_equipment_pressed
static

Definition at line 82 of file PlayerEntityControls.m.

◆ autopilot_key_pressed

BOOL autopilot_key_pressed
static

◆ autopilot_pause

BOOL autopilot_pause
static

◆ centre_at_mouse_click

NSPoint centre_at_mouse_click
static

Definition at line 155 of file PlayerEntityControls.m.

◆ chartInfoPressed

BOOL chartInfoPressed
static

Definition at line 135 of file PlayerEntityControls.m.

◆ colorblindModeControlPressed

BOOL colorblindModeControlPressed
static

Definition at line 130 of file PlayerEntityControls.m.

◆ cursor_moving

BOOL cursor_moving
static

Definition at line 105 of file PlayerEntityControls.m.

◆ customView_pressed

BOOL customView_pressed
static

Definition at line 141 of file PlayerEntityControls.m.

◆ cycleMFD_pressed

BOOL cycleMFD_pressed
static

Definition at line 144 of file PlayerEntityControls.m.

◆ disc_operation_in_progress

BOOL disc_operation_in_progress
static

Definition at line 106 of file PlayerEntityControls.m.

◆ docking_clearance_request_key_pressed

BOOL docking_clearance_request_key_pressed
static

Definition at line 95 of file PlayerEntityControls.m.

◆ dump_entity_list_pressed

BOOL dump_entity_list_pressed
static

Definition at line 98 of file PlayerEntityControls.m.

◆ dump_target_state_pressed

BOOL dump_target_state_pressed
static

Definition at line 97 of file PlayerEntityControls.m.

◆ escapePodKey_pressed

BOOL escapePodKey_pressed
static

Definition at line 143 of file PlayerEntityControls.m.

◆ extra_gui_key_pressed

BOOL extra_gui_key_pressed
static

Definition at line 153 of file PlayerEntityControls.m.

◆ extra_key_pressed

BOOL extra_key_pressed
static

Definition at line 152 of file PlayerEntityControls.m.

◆ f9_key_pressed

BOOL f9_key_pressed
static

Definition at line 107 of file PlayerEntityControls.m.

◆ f_key_pressed

BOOL f_key_pressed
static

Definition at line 102 of file PlayerEntityControls.m.

◆ fast_autopilot_key_pressed

BOOL fast_autopilot_key_pressed
static

◆ fastactivate_a_pressed

BOOL fastactivate_a_pressed
static

Definition at line 84 of file PlayerEntityControls.m.

◆ fastactivate_b_pressed

BOOL fastactivate_b_pressed
static

Definition at line 85 of file PlayerEntityControls.m.

◆ fire_missile_pressed

BOOL fire_missile_pressed
static

Definition at line 87 of file PlayerEntityControls.m.

◆ fovControlPressed

BOOL fovControlPressed
static

Definition at line 127 of file PlayerEntityControls.m.

◆ galhyperspace_pressed

BOOL galhyperspace_pressed
static

Definition at line 75 of file PlayerEntityControls.m.

◆ hdrMaxBrightnessControlPressed

BOOL hdrMaxBrightnessControlPressed
static

Definition at line 128 of file PlayerEntityControls.m.

◆ hdrPaperWhiteControlPressed

BOOL hdrPaperWhiteControlPressed
static

Definition at line 129 of file PlayerEntityControls.m.

◆ hide_hud_pressed

BOOL hide_hud_pressed
static

Definition at line 101 of file PlayerEntityControls.m.

◆ home_info_pressed

BOOL home_info_pressed
static

Definition at line 150 of file PlayerEntityControls.m.

◆ hyperspace_pressed

BOOL hyperspace_pressed
static

Definition at line 74 of file PlayerEntityControls.m.

◆ ident_pressed

BOOL ident_pressed
static

Definition at line 90 of file PlayerEntityControls.m.

◆ jump_pressed

BOOL jump_pressed
static

Definition at line 73 of file PlayerEntityControls.m.

◆ leftRightKeyPressed

BOOL leftRightKeyPressed
static

Definition at line 121 of file PlayerEntityControls.m.

◆ m_key_pressed

BOOL m_key_pressed
static

Definition at line 103 of file PlayerEntityControls.m.

◆ mode_equipment_pressed

BOOL mode_equipment_pressed
static

Definition at line 83 of file PlayerEntityControls.m.

◆ mouse_click_position

NSPoint mouse_click_position
static

Definition at line 154 of file PlayerEntityControls.m.

◆ mouse_left_down

BOOL mouse_left_down
static

Definition at line 146 of file PlayerEntityControls.m.

◆ mouse_x_axis_map_to_yaw

BOOL mouse_x_axis_map_to_yaw = NO
static

Definition at line 166 of file PlayerEntityControls.m.

◆ musicModeKeyPressed

BOOL musicModeKeyPressed
static

Definition at line 122 of file PlayerEntityControls.m.

◆ next_compass_mode_pressed

BOOL next_compass_mode_pressed
static

Definition at line 78 of file PlayerEntityControls.m.

◆ next_missile_pressed

BOOL next_missile_pressed
static

Definition at line 86 of file PlayerEntityControls.m.

◆ next_planet_info_pressed

BOOL next_planet_info_pressed
static

Definition at line 148 of file PlayerEntityControls.m.

◆ next_target_pressed

BOOL next_target_pressed
static

Definition at line 79 of file PlayerEntityControls.m.

◆ oxz_manager_pressed

BOOL oxz_manager_pressed
static

Definition at line 147 of file PlayerEntityControls.m.

◆ pageUpDownKeyPressed

BOOL pageUpDownKeyPressed
static

Definition at line 120 of file PlayerEntityControls.m.

◆ pause_pressed

BOOL pause_pressed
static

◆ playing_music

BOOL playing_music
static

◆ pling_pressed

BOOL pling_pressed
static

Definition at line 104 of file PlayerEntityControls.m.

◆ pressedArrow

int pressedArrow = 0
static

Definition at line 165 of file PlayerEntityControls.m.

◆ prev_compass_mode_pressed

BOOL prev_compass_mode_pressed
static

Definition at line 77 of file PlayerEntityControls.m.

◆ previous_planet_info_pressed

BOOL previous_planet_info_pressed
static

Definition at line 149 of file PlayerEntityControls.m.

◆ previous_target_pressed

BOOL previous_target_pressed
static

Definition at line 80 of file PlayerEntityControls.m.

◆ prime_equipment_pressed

BOOL prime_equipment_pressed
static

Definition at line 81 of file PlayerEntityControls.m.

◆ queryPressed

BOOL queryPressed
static

Definition at line 133 of file PlayerEntityControls.m.

◆ rotateCargo_pressed

BOOL rotateCargo_pressed
static

Definition at line 92 of file PlayerEntityControls.m.

◆ safety_pressed

BOOL safety_pressed
static

Definition at line 91 of file PlayerEntityControls.m.

◆ saved_gui_screen

int saved_gui_screen
static

Definition at line 163 of file PlayerEntityControls.m.

◆ saved_script_time

double saved_script_time
static

Definition at line 162 of file PlayerEntityControls.m.

◆ saved_view_direction

int saved_view_direction
static

Definition at line 161 of file PlayerEntityControls.m.

◆ saved_weapon_facing

OOWeaponFacing saved_weapon_facing
static

Definition at line 164 of file PlayerEntityControls.m.

◆ searchStringLength

NSUInteger searchStringLength
static

Definition at line 158 of file PlayerEntityControls.m.

◆ selectPressed

BOOL selectPressed
static

Definition at line 132 of file PlayerEntityControls.m.

◆ shaderSelectKeyPressed

BOOL shaderSelectKeyPressed
static

Definition at line 131 of file PlayerEntityControls.m.

◆ spacePressed

BOOL spacePressed
static

Definition at line 134 of file PlayerEntityControls.m.

◆ speech_settings_pressed

BOOL speech_settings_pressed
static

Definition at line 112 of file PlayerEntityControls.m.

◆ switching_chart_screens

BOOL switching_chart_screens
static

Definition at line 136 of file PlayerEntityControls.m.

◆ switching_equipship_screens

BOOL switching_equipship_screens
static

Definition at line 139 of file PlayerEntityControls.m.

◆ switching_resolution

BOOL switching_resolution
static

Definition at line 109 of file PlayerEntityControls.m.

◆ switching_status_screens

BOOL switching_status_screens
static

Definition at line 137 of file PlayerEntityControls.m.

◆ switchMFD_pressed

BOOL switchMFD_pressed
static

Definition at line 145 of file PlayerEntityControls.m.

◆ taking_snapshot

BOOL taking_snapshot
static

Definition at line 100 of file PlayerEntityControls.m.

◆ target_incoming_missile_pressed

BOOL target_incoming_missile_pressed
static

Definition at line 89 of file PlayerEntityControls.m.

◆ target_info_pressed

BOOL target_info_pressed
static

Definition at line 151 of file PlayerEntityControls.m.

◆ target_missile_pressed

BOOL target_missile_pressed
static

Definition at line 88 of file PlayerEntityControls.m.

◆ time_last_frame

NSTimeInterval time_last_frame
static

Definition at line 167 of file PlayerEntityControls.m.

◆ timeLastKeyPress

double timeLastKeyPress
static

Definition at line 159 of file PlayerEntityControls.m.

◆ toggling_music

BOOL toggling_music
static

◆ upDownKeyPressed

BOOL upDownKeyPressed
static

Definition at line 119 of file PlayerEntityControls.m.

◆ volumeControlPressed

BOOL volumeControlPressed
static

Definition at line 123 of file PlayerEntityControls.m.

◆ wait_for_key_up

BOOL wait_for_key_up
static

Definition at line 118 of file PlayerEntityControls.m.

◆ weaponsOnlineToggle_pressed

BOOL weaponsOnlineToggle_pressed
static

Definition at line 142 of file PlayerEntityControls.m.

◆ zoom_pressed

BOOL zoom_pressed
static

Definition at line 140 of file PlayerEntityControls.m.