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

9 lines
426 B
Plaintext
Raw Normal View History

2022-08-15 04:06:41 +00:00
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);
select = mouse_check_button_pressed(mb_left) + keyboard_check_pressed(vk_enter);
back = mouse_check_button_pressed(mb_right) + keyboard_check_pressed(vk_escape);
}