LizardByte / LizardByte/libvirtualhid

Linux: Browser Gamepad API omits DualShock 4 and DualSense touchpad button

未关闭
#82 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@LizardByte-bot 已经在做这个了。

开始于 2026年8月15日。

主要语言
C++
星标
54
派生
15
平均合并
11 小时 32 分钟
30 天内合并 PR
34

描述

Environment

Observed behavior

Neither browser exposes the touchpad click button for the virtual DualShock 4 or DualSense.

Example DualSense identities:

  • Chromium: Sunshine (libvirtualhid) PS5 Controller (STANDARD GAMEPAD Vendor: 054c Product: 0ce6)
  • Firefox: 054c-0ce6-Sunshine (libvirtualhid) PS5 Controller

The gamepad-helper mapping already assigns PlayStation button index 17 to the touchpad, so the missing value occurs before presentation when the browser's Gamepad.buttons collection is populated.

Expected behavior

The touchpad click should be exposed as a browser gamepad button and rendered with the existing touchpad mapping.

Investigation boundary

Compare raw browser Gamepad API state with hidraw/evdev reports and each browser's standard-mapping behavior. Do not change the public controller mapping or Windows backend unless the captured report path proves that is required.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。