feat: 添加竖屏软键盘快捷按键栏与画面避让 - #80
Open
GBitCat wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
当前项目自带的全键盘会被 Android 系统软键盘覆盖,常用桌面控制键难以实际使用。新增按键栏后,还需要避免它遮挡被控端画面的本地显示区域,并确保横屏串流布局完全不受影响。
修改内容
EXT-IME-ACCESSORY-BAR
ESC, TAB, Unknown, HOME, ↑, END, PGUPCMD, CTRL, ALT, ←, ↓, →, PGDNCMD、CTRL、ALT支持锁定;方向键和其他功能键按触摸按下/抬起发送。CMD发送标准 Meta 键:Linux/Windows 被控端表现为 Win,macOS 被控端表现为 Command。EXT-IME-VIDEO-VIEWPORT
扩展边界
Game.java只负责挂载控制器、转发现有键盘事件,并提供视频布局刷新回调。EXT-IME-ACCESSORY-BAR、EXT-IME-VIDEO-VIEWPORT的[ADDED]/[MODIFIED]标记。验证
在 Ubuntu 26.04 开发容器中,从上游
master的干净分支执行:结果:
git diff --check通过。