Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_keyboard_multicheck_pressed

(view raw script w/o annotations or w/e)
1
function keyboard_multicheck_pressed(argument0) //gml_Script_keyboard_multicheck_pressed
2
{
3
    if (argument0 == 0 || argument0 == 13)
4
    {
5
        if (keyboard_check_pressed(vk_return) || keyboard_check_pressed(ord("Z")) || keyboard_check_pressed(ord("Y")) || gamepad_button_check_pressed(0, global.button1) || gamepad_button_check_pressed(0, gp_shoulderr))
6
            return true;
7
    }
8
    if (argument0 == 1 || argument0 == 16)
9
    {
10
        if (keyboard_check_pressed(vk_shift) || keyboard_check_pressed(ord("X")) || gamepad_button_check_pressed(0, global.button2) || gamepad_button_check_pressed(0, gp_shoulderl))
11
            return true;
12
    }
13
    if (argument0 == 2 || argument0 == 17)
14
    {
15
        if (keyboard_check_pressed(vk_control) || keyboard_check_pressed(ord("C")) || gamepad_button_check_pressed(0, global.button3))
16
            return true;
17
    }
18
    return false;
19
}