Deltarune script viewer

← back to main script listing

gml_GlobalScript_button1_p

(view raw script w/o annotations or w/e)
1
function button1_p()
2
{
3
    if (global.input_pressed[4])
4
    {
5
        return 1;
6
    }
7
    else if (global.input_pressed[7])
8
    {
9
        return 1;
10
    }
11
    else if (gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_shoulderlb))
12
    {
13
        if (!obj_gamecontroller.gamepad_shoulderlb_reassign)
14
            return 1;
15
    }
16
}