Okay i see. If i start the debugger i see that the global.input_key got a array (9560E80), but the global.active_game,global.input_pad a unable to evaluate.
This is the error i got:
ERROR in
action number 1
of Create Event
for object parent_menu:
trying to index a variable which is not an array
at gml_Script_get_keys (line 17) - k_u = keyboard_check(global.input_key[input_U]) ||gamepad_button_check(global.active_gamepad,global.input_pad[input_U])
############################################################################################
gml_Script_get_keys (line 17)
gml_Object_parent_menu_Create_0 (line 4) - get_keys()//Get once so that held keys won't instantly trigger press-but-not-held
gml_Object_obj_gguimenu_Create_0 (line 2)
gml_Object_obj_titlescreen_Create_0 (line 2)
What is the best way to make the gamepad works? Thankyou for your answer.