Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gamepad: Deduplicate common Switch mapping functions
The Gamepad backend defines platform-specific mapping functions to reorder button/axis inputs to match the Standard Gamepad described in the Gamepad API specification. Historically, these mappings are platform-specific due to differences in how the platforms enumerate button and axis inputs. In many cases the platforms enumerate the inputs the same way, leading to identical or near-identical mapping functions. This CL moves the Switch gamepad mapping functions, which are identical on Windows, macOS, and Linux/ChromeOS, to gamepad_standard_mappings.h. R=mattreynolds@chromium.org Bug: 1145647 Change-Id: I1c6e3ce32fd594d5d37957cc8eb0a5480068797f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2764084 Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#869295}
- Loading branch information
Showing
5 changed files
with
40 additions
and
105 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