forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DesktopGL] Remove string allocations when calling GamePad.GetCapabil…
…ities. (MonoGame#8453) * Remove string allocations when calling GamePad.GetCapabilities. We were using some string parsing to get the capabilities of the gamepad. We should have been using the appropriate `SDL_GameControllerHasButton` and `SDL_GameControllerHasAxis` functions to get this information. * Fix formatting
- Loading branch information
1 parent
39313ed
commit efeb84e
Showing
2 changed files
with
29 additions
and
75 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