Returns 1 if the given button is currently down, otherwise returns 0. To detect the instance that a button is pressed or released use GetRawJoystickButtonPressed or GetRawJoystickButtonReleased.
AGK supports up to 32 joystick buttons in the range 1-32.
integer GetRawJoystickButtonState( index, button )