MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Xbox Controller is not working in Webview2 in UWP [WinUI2]

Open
#4,366 18 comments 3 reactions 1 assignee View on GitHub

@jennifer-nejad is already working on this.

Since Feb 9, 2024.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

I've created a simple UWP application with WinUI 2 according to the official documentation.
The webview is loading the URL https://gamepad-tester.com/

I connected a Gamepad (Xbox One Controller) to my computer.
The gamepad works fine in Google Chrome and Microsoft Edge (Chromium).

But the gamepad is not working in Webview2.

See also: https://github.com/MicrosoftEdge/WebView2Feedback/issues/1318

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

WinUI2/UWP

Operating System

Windows 10

OS Version

19045.3930

Repro steps

Create a simple WinUI2 UWP application and add a webview2 targeting the URL https://gamepad-tester.com/

Repros in Edge Browser

No

Regression

No, this never worked

Last working version (if regression)

No response

AB#48930763

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.