-
-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, a manual polling of every joystick was performed every 25ms, resulting in many CPU resources being wasted. This seems to have been put in place to deal with issues in SDL where joysticks connected after SDL was initialized did not fire SDL events properly. From manual testing, this issue seems to have been fixed. This also fixes a bug in handling of legacy joystick hats, where an incorrect conversion for the event value was performed. Finally, this fixes minor typoes and renames `wxSDLJoyState::ProcessEvent()` to `wxSDLJoyState::ProcessSDLEvent()` to suppress a warning about a method override.
- Loading branch information
Showing
1 changed file
with
14 additions
and
91 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