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

15 lines
803 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);
2022-08-15 04:36:37 +00:00
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);
2022-08-15 04:06:41 +00:00
select = mouse_check_button_pressed(mb_left) + keyboard_check_pressed(vk_enter);
2022-08-17 16:49:45 +00:00
back = mouse_check_button_pressed(mb_right) + keyboard_check_pressed(vk_escape) + keyboard_check_pressed(ord("Q"));
2022-08-15 04:36:37 +00:00
stop = keyboard_check(vk_shift);
2022-08-15 04:06:41 +00:00
}