Daniel Mallett
Member
I'm running the gamepad_is_supported(); function. It reports true when no controller is connected. How does it know? This makes no sense to me.
for (var i = 0; i < 12; ++i)
{
show_debug_message(gamepad_is_connected(i));
}
The documentation(not that you care anymore ) says the devices are 0 - 11, with 0 - 3 being XInput and the rest being DInput. On Windows I've never had that not be the case. However, another user pointed out to me that on mobile it completely skips 0 and starts with 1, and another mentioned that on Linux it seems to start at 20....not very consistent.Use the ASYNC SYSTEM event to detect your connected controllers. GM can assign controller IDs higher than 11 so the async event is a more reliable system for detecting them.