Microsoft has brought Windows.Gaming.Input (WGI) to Chromium to give game controller support on Windows 10 desktop, Windows Core OS (WCOS), and Xbox. The feature is currently available behind a flag in Chrome 86 Canary and can be enabled.
Microsoft claims the present Gamepad JavaScript API can be improved by adding Windows.Gaming.Input (WGI) as another backend.
With this change, Chromium will support a wider range of devices on Windows 10, says Microsoft’s developer in the bug design description.
“The WGI can support features added in the new gaming peripherals. For example, number triggers on the Xbox One gamepad, and paddles on the Elite controllers.” the developer says.
WGI Gaming Javascript API can work on both Windows desktop (win32 apps) and Windows 10X.
The feature provides support to Chromium for gamepad-specific plug & Play APIs.
Yesterday, Google made a commit to bring a flag for WGI.
“This CL is part of the feature to make Windows.Gaming.Input (WGI) turned on default on Chromium”
“Since this feature is under an experiment controlled rollout, the change is put behind a feature flag. “KEnableWindowsGamingInputDatefetche” and is turned off by default.”
Enable Windows Gaming Input in Chrome
1. Launch Chrome browser
2. Visit chrome://flags
3. Search for “Enable.Windows.Gaming.Input”

4. Select “Enabled” from the dropdown and restart the browser
Related articles:
Chrome HDR is broken on Windows 10, Fix on the way