This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWALK-4992 [windows] App does not support gamepad
While chromium is bundling xinput1_3.dll from DirectX redist, using whatever platform suports. Logic about what dll is in use for different platforms is copied from Xinput.h. In order to target all of the Windows versions with the same binary, chosen to keep dynamic linking approach. Otherwise, there would be a problem with XInputEnable not available in xinput dll before Windows8 and deprecated on Windows 10. Snippet from <ProgramFiles>\Windows Kits\10\Include\10.0.10586.0\um\Xinput.h: \#if(_WIN32_WINNT >= _WIN32_WINNT_WIN8) \#define XINPUT_DLL_A "xinput1_4.dll" \#define XINPUT_DLL_W L"xinput1_4.dll" \#else \#define XINPUT_DLL_A "xinput9_1_0.dll" \#define XINPUT_DLL_W L"xinput9_1_0.dll" \#endif For detailed information on Windows library loading and search path priorities, check https://msdn.microsoft.com documentation on LoadLibrary(). Upstreaming the patch planned, too.
- Loading branch information
Showing
6 changed files
with
23 additions
and
42 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
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