3 ms·
Exactly. It should enumerate them when the player opens settings. Or at startup. But even if it wants to do this, why is it doing it on the main thread!? :(
by pas 5y ago
Exactly. It should enumerate them when the player opens settings. Or at startup.
But even if it wants to do this, why is it doing it on the main thread!? :(
- flohofwoe 5y agoIf I start the game without a gamepad attached to the computer, and then attach the gamepad, I'd like to use the gamepad without restarting the game. And one would expect that polling the attached input devices should never take hundreds or thousands of milliseconds, there must be something seriously wrong in the Linux input device stack or maybe in one of the input device drivers.
- Vvector 5y agoOr maybe just poll for new input devices when the game is paused, or before the game starts.
- flohofwoe 5y agoThen you still have problems to handle like accidentally disconnecting/reconnecting the gamepad when somebody stumbles over the cable (for instance the game might want to automatically pause if the gamepad suddenly 'disappears' for any reason). Gamepads should be automatically detected at any time in the game as they are connected or disconnected. That's how it works on game consoles, and PC games shouldn't behave any different in that regard IMHO.
- yjftsjthsd-h 5y agoThe input stack is fine, this game disabled the things that would let it work nicely (see upthread discussion of SDL supporting udev and inotify)