-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to hotplugging on Desktop. (#31)
* Improvements to hotplugging on Desktop. Changes JamepadControllerMonitor to track controllers by SDL instance ID instead of SDL index. This keeps the association of Controller java objects and physical devices constant. Cuts out the check for new controllers in JamepadControllerMonitor by instead updating the controller list when Jamepad reports that its controller list was updated. Adds the ability for JamepadController to report its name when disconnected by storing the name on connect. Allows JampadController to treat a null ControllerIndex as a disconnected controller. Fixes a bug in JamepadControllerManager that caused the controller update code to run twice as often as intended. Fixes a bug in ControllersTest that caused the first controller to be unresponsive when the program first starts. Fixes a bug in ControllersTest that caused duplicate disconnect messages in sone circumstances. Updates to the newest snapshot of Jamepad. * JamepadController always returns stored name. Updates Jamepad to stable version. Improves code formatting.
- Loading branch information
Showing
5 changed files
with
93 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters