Mr Errorz
Member
Testing gamepad support on a GMS 1.4 project, it seems that if I unplug my gamepad during runtime and than plug it back in,
it doesn't always gets detected...
I tested in 2 ways and got varying results-
1.
If I hit compile to run the game while the gamepad is connected to the PC [meaning the game starts while a gamepad is connected], it seems to never detect it if I plug it back after disconnecting.
2.
If I hit compile to run the game while the gamepad is NOT connected to the PC [meaning the game starts without a gamepad being connected],
when I plug a controller after the game starts, it detects the gamepad, but than falters sometimes when I unplug/plug again.
Anyone knows why this is happening or how to work around it?
Mainly, it seems as if gamepad_is_connected() doesn't always detect a gamepad being connected...
it doesn't always gets detected...
I tested in 2 ways and got varying results-
1.
If I hit compile to run the game while the gamepad is connected to the PC [meaning the game starts while a gamepad is connected], it seems to never detect it if I plug it back after disconnecting.
2.
If I hit compile to run the game while the gamepad is NOT connected to the PC [meaning the game starts without a gamepad being connected],
when I plug a controller after the game starts, it detects the gamepad, but than falters sometimes when I unplug/plug again.
Anyone knows why this is happening or how to work around it?
Mainly, it seems as if gamepad_is_connected() doesn't always detect a gamepad being connected...