| Summary: | OUYA/Android joystick hotplug support | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Martin Gerhardy <martin.gerhardy> |
| Component: | joystick | Assignee: | Gabriel Jacobo <gabomdq> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P1 | ||
| Version: | HG 2.0 | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
|
Description
Martin Gerhardy
2013-12-08 11:36:49 UTC
Gabriel, this is an important thing to fix for the next release. Can you take a look? Thanks! A first pass: https://hg.libsdl.org/SDL/rev/801d84e26f91 Feel free to open other bugs if you find problems with this. I tested with the controllermap app and it seemed to perform well. One fix we can probably do is to not poll for new joysticks on every iteration, maybe have a timeout and poll every second, or five seconds or whatever. Specially given that pressing a button on an unknown joystick will trigger a polling event as well. What do you think Sam? thanks a lot Gabriel - I will test on my ouya and some other devices. Yes, polling every 3 seconds sounds good. |