Interaction :: Gamepad

joystick_get_button(id)
Returns a button number of a given joystick, if pressed, or 0 if no button is pressed.