bool _lib_gamepad_is_supported();
int _lib_gamepad_getPlatform();
int _lib_gamepad_get_current_device_count();
bool _lib_gamepad_platform_requires_refresh();
string _lib_gamepad_config_file_path();
object _lib_gamepad_get_device_reference(int index);
int _lib_gamepad_jsIsOsx();
void _lib_gamepad_poll_universe();
void _lib_gamepad_refresh_devices();

string _lib_gamepad_get_name(int index, object device);
int _lib_gamepad_get_button_count(int index, object device);
int _lib_gamepad_get_axis_1d_count(int index, object device);
int _lib_gamepad_get_axis_2d_count(int index, object device);

double _lib_gamepad_get_axis_1d_state(object device, int index);
void _lib_gamepad_get_axis_2d_state(object device, int index, Array<int> outBuffer);
bool _lib_gamepad_get_button_state(object device, int index);
