|
1
|
quit_timer = 0;
|
|
2
|
keyboard_active = 1;
|
|
3
|
axis_value = 0.4;
|
|
4
|
fullscreen_toggle = 0;
|
|
5
|
window_center_toggle = 0;
|
|
6
|
isfullscreen = 0;
|
|
7
|
screenshot_number = 0;
|
|
8
|
border_fade_out = false;
|
|
9
|
border_fade_in = false;
|
|
10
|
border_alpha = 1;
|
|
11
|
border_fade_value = 0.025;
|
|
12
|
loaded = false;
|
|
13
|
paused = false;
|
|
14
|
paused = false;
|
|
15
|
pausing = false;
|
|
16
|
screenshot = -1;
|
|
17
|
if (instance_number(obj_time) > 1)
|
|
18
|
{
|
|
19
|
instance_destroy();
|
|
20
|
}
|
|
21
|
else
|
|
22
|
{
|
|
23
|
var setfull = false;
|
|
24
|
if (!global.is_console)
|
|
25
|
{
|
|
26
|
ini_open("true_config.ini");
|
|
27
|
setfull = ini_read_real("SCREEN", "FULLSCREEN", 0);
|
|
28
|
ini_close();
|
|
29
|
if (setfull)
|
|
30
|
window_set_fullscreen(true);
|
|
31
|
}
|
|
32
|
var display_height = display_get_height();
|
|
33
|
var display_width = display_get_width();
|
|
34
|
window_size_multiplier = 1;
|
|
35
|
for (var _ww = 2; _ww < 12; _ww += 1)
|
|
36
|
{
|
|
37
|
if (display_width > (640 * _ww) && display_height > (480 * _ww))
|
|
38
|
window_size_multiplier = _ww;
|
|
39
|
}
|
|
40
|
if (window_size_multiplier > 1 && !setfull && !global.launcher)
|
|
41
|
{
|
|
42
|
window_set_size(640 * window_size_multiplier, 480 * window_size_multiplier);
|
|
43
|
window_center_toggle = 1;
|
|
44
|
}
|
|
45
|
if (scr_is_switch_os())
|
|
46
|
{
|
|
47
|
switch_controller_support_set_defaults();
|
|
48
|
switch_controller_support_set_singleplayer_only(true);
|
|
49
|
switch_controller_set_supported_styles(7);
|
|
50
|
}
|
|
51
|
scr_controls_defaultscr_controls_default
function scr_controls_default()
{
global.button0 = gp_face1;
global.button1 = gp_face2;
global.button2 = gp_face4;
if (os_type == os_ps4 || os_type == os_ps5)
{
var os_map = os_get_info();
var ps4_confirm_button = undefined;
if (os_map != -1)
{
var mapsize = ds_map_size(os_map);
var key = ds_map_find_first(os_map);
for (var i = 0; i < (mapsize - 1); i++)
{
if (key == "enter_button_assign")
ps4_confirm_button = ds_map_find_value(os_map, key);
else
key = ds_map_find_next(os_map, key);
}
ds_map_destroy(os_map);
}
if (ps4_confirm_button == 0)
{
global.button0 = gp_face2;
global.button1 = gp_face1;
}
else
{
global.button0 = gp_face1;
global.button1 = gp_face2;
}
global.button2 = gp_face4;
}
else if (scr_is_switch_os())
{
global.button0 = gp_face2;
global.button1 = gp_face1;
global.button2 = gp_face4;
}
global.default_button0 = global.button0;
global.default_button1 = global.button1;
global.default_button2 = global.button2;
global.input_k[0] = vk_down;
global.input_k[1] = vk_right;
global.input_k[2] = vk_up;
global.input_k[3] = vk_left;
global.input_k[4] = ord("Z");
global.input_k[5] = ord("X");
global.input_k[6] = ord("C");
global.input_k[7] = vk_enter;
global.input_k[8] = vk_shift;
global.input_k[9] = vk_control;
global.input_g[0] = gp_padd;
global.input_g[1] = gp_padr;
global.input_g[2] = gp_padu;
global.input_g[3] = gp_padl;
global.input_g[4] = global.button0;
global.input_g[5] = global.button1;
global.input_g[6] = global.button2;
global.input_g[7] = 999;
global.input_g[8] = 999;
global.input_g[9] = 999;
obj_gamecontroller.gamepad_shoulderlb_reassign = 0;
} ();
|
|
52
|
scr_ascii_input_namesscr_ascii_input_names
function scr_ascii_input_names()
{
global.asc_def[8] = ;
global.asc_def[9] = ;
global.asc_def[12] = ;
global.asc_def[13] = ;
global.asc_def[19] = ;
global.asc_def[20] = ;
global.asc_def[27] = ;
global.asc_def[32] = ;
global.asc_def[33] = ;
global.asc_def[34] = ;
global.asc_def[35] = ;
global.asc_def[36] = ;
global.asc_def[37] = ;
global.asc_def[38] = ;
global.asc_def[39] = ;
global.asc_def[40] = ;
global.asc_def[45] = ;
global.asc_def[46] = ;
global.asc_def[48] = "0";
global.asc_def[49] = "1";
global.asc_def[50] = "2";
global.asc_def[51] = "3";
global.asc_def[52] = "4";
global.asc_def[53] = "5";
global.asc_def[54] = "6";
global.asc_def[55] = "7";
global.asc_def[56] = "8";
global.asc_def[57] = "9";
global.asc_def[65] = "A";
global.asc_def[66] = "B";
global.asc_def[67] = "C";
global.asc_def[68] = "D";
global.asc_def[69] = "E";
global.asc_def[70] = "F";
global.asc_def[71] = "G";
global.asc_def[72] = "H";
global.asc_def[73] = "I";
global.asc_def[74] = "J";
global.asc_def[75] = "K";
global.asc_def[76] = "L";
global.asc_def[77] = "M";
global.asc_def[78] = "N";
global.asc_def[79] = "O";
global.asc_def[80] = "P";
global.asc_def[81] = "Q";
global.asc_def[82] = "R";
global.asc_def[83] = "S";
global.asc_def[84] = "T";
global.asc_def[85] = "U";
global.asc_def[86] = "V";
global.asc_def[87] = "W";
global.asc_def[88] = "X";
global.asc_def[89] = "Y";
global.asc_def[90] = "Z";
global.asc_def[91] = ;
global.asc_def[96] = ;
global.asc_def[97] = ;
global.asc_def[98] = ;
global.asc_def[99] = ;
global.asc_def[100] = ;
global.asc_def[101] = ;
global.asc_def[102] = ;
global.asc_def[103] = ;
global.asc_def[104] = ;
global.asc_def[105] = ;
global.asc_def[106] = ;
global.asc_def[107] = ;
global.asc_def[109] = ;
global.asc_def[110] = ;
global.asc_def[111] = ;
global.asc_def[112] = ;
global.asc_def[113] = ;
global.asc_def[114] = ;
global.asc_def[115] = ;
global.asc_def[116] = ;
global.asc_def[117] = ;
global.asc_def[118] = ;
global.asc_def[119] = ;
global.asc_def[120] = ;
global.asc_def[121] = ;
global.asc_def[122] = ;
global.asc_def[123] = ;
global.asc_def[144] = ;
global.asc_def[145] = ;
global.asc_def[160] = ;
global.asc_def[161] = ;
global.asc_def[162] = ;
global.asc_def[163] = ;
global.asc_def[164] = ;
global.asc_def[165] = ;
global.asc_def[186] = ";";
global.asc_def[187] = "=";
global.asc_def[188] = ",";
global.asc_def[189] = "-";
global.asc_def[190] = ".";
global.asc_def[191] = "?";
global.asc_def[192] = "~";
global.asc_def[219] = "[";
global.asc_def[220] = ;
... ();
|
|
53
|
for (i = 0; i < 10; i += 1)
|
|
54
|
{
|
|
55
|
global.input_pressed[i] = 0;
|
|
56
|
global.input_held[i] = 0;
|
|
57
|
global.input_released[i] = 0;
|
|
58
|
}
|
|
59
|
if (global.is_console)
|
|
60
|
{
|
|
61
|
application_surface_enable(true);
|
|
62
|
application_surface_draw_enable(false);
|
|
63
|
}
|
|
64
|
scr_enable_screen_borderscr_enable_screen_border
function scr_enable_screen_border(arg0)
{
var flag = arg0;
flag = flag != 0;
if (flag != global.screen_border_active)
{
global.screen_border_active = flag != 0;
global.screen_border_state = 0;
global.screen_border_dynamic_fade_id = 0;
global.screen_border_dynamic_fade_level = 0;
}
} (global.is_console);
|
|
65
|
}
|