Skip to content

Instantly share code, notes, and snippets.

Last active Aug 14, 2018
What would you like to do?
GML Script. Used in step after setup_inputs has been used. This is a generic input script that can change back and forth from keyboard/mouse to gamepad via the input_change swapper. Example: button_check(0,global.confirm);
///button_check(device number, button)
return keyboard_check(argument1) || gamepad_button_check(argument0,argument1)
///button_check_pressed(device number, button)
return keyboard_check_pressed(argument1) || gamepad_button_check_pressed(argument0,argument1)
///button_check_released(device number, button)
return keyboard_check_released(argument1) || gamepad_button_check_released(argument0,argument1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment