Skip to content

fix(player): hide virtual gamepad toolbar button on desktop - #287

Merged
xxxsen merged 1 commit into
masterfrom
codex/virtual-gamepad-toolbar
Oct 30, 2026
Merged

xxxsen merged 1 commit into
masterfrom
codex/virtual-gamepad-toolbar

Conversation

@xxxsen

@xxxsen xxxsen commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

提供虚拟手柄接口的核心在 PC 游玩时仍显示顶部手柄开关。复用 Player 现有的桌面指针判定,让 PC(含窄窗口)隐藏该按钮,移动触控设备继续显示并可切换。

- showButton = touchGamepad
+ showButton = !desktopPointer && touchGamepad

同步 UI 契约和设计评审稿,并补充桌面偏好状态回归及实际 RPG Maker 四视口验证。

Evidence

  • Before: 桌面端的开启、关闭两种偏好均渲染手柄按钮;新增两项断言在修改前失败。
    After: 两项桌面断言通过,移动端开关及按核心保存偏好的测试继续通过;相关 21 项测试通过。
  • make web-check 通过:样式门禁、lint、类型检查、590 项单测及生产构建。
  • 实际 RPG Maker 四视口专项全部通过,覆盖普通/窄窗口 PC、手机开关和 4K/150% 缩放截图。
  • GitHub CI 全部门禁通过,包含四视口完整浏览器回归、Web、后端、数据库集成、契约及 PFB 网关;分支镜像构建和部署连接验证 通过。
  • Provider 契约预检 16 项通过;PFB 健康检查和 pfb-verify 通过。

Merge Danger

Door: two-way

Blast Radius: UI

影响普通 Player 顶部虚拟手柄按钮的渲染条件,可通过回退提交恢复。

Reuse the existing desktop pointer mode so narrow PC windows also omit the virtual gamepad control. Preserve mobile toggling and cover both preference states and real RPG Maker launches.
@xxxsen
xxxsen merged commit 3ec0979 into master Oct 30, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant