eastern-flames/eastern flames/scripts/c_input/c_input.gml

15 lines
768 B
Plaintext

function c_input() {
left = keyboard_check(ord("A")) + keyboard_check(vk_left);
down = keyboard_check(ord("S")) + keyboard_check(vk_down);
up = keyboard_check(ord("W")) + keyboard_check(vk_up);
right = keyboard_check(ord("D")) + keyboard_check(vk_right);
leftp = keyboard_check_pressed(ord("A")) + keyboard_check_pressed(vk_left);
downp = keyboard_check_pressed(ord("S")) + keyboard_check_pressed(vk_down);
upp = keyboard_check_pressed(ord("W")) + keyboard_check_pressed(vk_up);
rightp = keyboard_check_pressed(ord("D")) + keyboard_check_pressed(vk_right);
select = mouse_check_button_pressed(mb_left) + keyboard_check_pressed(vk_enter);
back = mouse_check_button_pressed(mb_right) + keyboard_check_pressed(vk_escape);
stop = keyboard_check(vk_shift);
}