Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GML Script. Checks to see if the device number (argument0) was interacted with at all. Used in input_change() to know to swap inputs!
device = argument0;
for ( var i = gp_face1; i < gp_axisrv; i++ )
if ( gamepad_button_check(device , i ) ) return i;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment