Skip to content

Add controller alias mapping and fix ChildButton mouse binding persistence / 新增手柄别名映射并修复 ChildButton 鼠标绑定保存问题#222

Open
kingfen-wu wants to merge 11 commits into
PlayCover:masterfrom
kingfen-wu:master
Open

Add controller alias mapping and fix ChildButton mouse binding persistence / 新增手柄别名映射并修复 ChildButton 鼠标绑定保存问题#222
kingfen-wu wants to merge 11 commits into
PlayCover:masterfrom
kingfen-wu:master

Conversation

@kingfen-wu
Copy link
Copy Markdown

Summary / 概要

Add controller alias support across the keymapping pipeline, and fix ChildButton so mouse button bindings are saved correctly.

补齐手柄别名在 keymapping 链路中的支持,并修复 ChildButton 保存鼠标按键绑定时出错的问题。

Changes / 改动内容

  • add readable controller aliases with legacy short-name compatibility

  • 新增可读手柄别名,并兼容旧短名

  • register controller actions with both readable names and legacy aliases

  • 运行时同时注册完整手柄名称和旧别名

  • recognize Left Thumbstick and Right Thumbstick explicitly

  • 显式识别 Left ThumbstickRight Thumbstick

  • allow draggable actions to use the bound input source instead of hardcoded mouse movement

  • 让拖拽动作跟随绑定输入源,而不是写死为鼠标移动

  • fix ChildButton mouse button bindings being restored as the wrong key after saving

  • 修复 ChildButton 保存后鼠标按键绑定被错误还原的问题

Testing / 测试

  • verified controller mappings can be saved and triggered

  • 已验证手柄映射可以正确保存并触发

  • verified draggable actions work with thumbstick-bound input

  • 已验证拖拽动作可由绑定到摇杆的输入驱动

  • verified mouse button bindings in ChildButton no longer change after saving

  • 已验证 ChildButton 中的鼠标按键绑定保存后不再错误变化

@kingfen-wu kingfen-wu changed the title 新增手柄别名映射,并修复 ChildButton 鼠标绑定保存问题 Add controller alias mapping and fix ChildButton mouse binding persistence / 新增手柄别名映射并修复 ChildButton 鼠标绑定保存问题 May 6, 2026
- Add a read-only keymap HUD with per-keymap hudOpacity support and localized menu toggle.

- Support radial selector mappings, long-press triggers, triggered swipes, and shoulder-button keymap switching.

- Refresh the HUD after switching keymaps and keep Toast/keymap switching UI work on the main thread.

- Improve controller/key display names and localize new keymapping menu items and hints.

- 新增只读映射提示层,支持每个映射配置通过 hudOpacity 控制透明度,并补充菜单本地化。

- 支持轮盘映射、长按触发、按键触发滑动,以及肩键切换映射配置。

- 切换映射后自动刷新 HUD,并将 Toast/切换 UI 操作切回主线程,减少黑框和卡顿。

- 优化手柄按键显示名称,并补齐新增按键映射菜单和提示文案。
@TheMoonThatRises TheMoonThatRises added the squash Indicates whether a PR must be squashed before being merged label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squash Indicates whether a PR must be squashed before being merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants