Repository navigation
发版:ModAVDExtras v0.3.0 进 release/0.40(随 ModAVD 0.40.3) - #20
Merged
Merged
Conversation
把 release/0.40 并回 main(0.1.3)
* 宿主侧点击:modavd_touch_* 走模拟器控制台的多点触控事件 - 每个句柄一条控制台长连接,第一次点击时连上,断了重连一次;关闭句柄时先抬起还按着的手指。 - 按多点触控协议 B 拼 event send(槽位、跟踪编号、坐标、压力、接触面积),坐标按共享画面的宽高换算到 0–32767,和 event mouse 的换算、默认压力一致。最多 10 根手指;已按下的再按下当移动。 - 接口版本 2,能力位加 MODAVD_CAP_TOUCH;按键、文字仍是 MODAVD_E_UNSUPPORTED。 - 控制台客户端拆成打开、发送、关闭三步,一次性命令照旧。 - 新增 test_input:假控制台核对每条命令、坐标换算、重连、关闭时抬起和认证。 * 一次性控制台命令挪到 console_command.c,测试记录命令不再用 snprintf - test_open_posix 自己定义 mx_console_command 顶替库里的;点击用到 console.c 的会话函数后,console.c 会被链接进来,两份定义冲突(macOS 链接失败)。一次性命令单独成文件,顶替照旧有效。 - gcc 的 -Wformat-truncation 把 test_input 里按 %s 拷进固定缓冲判为可能截断,改成按长度拷贝。 * test_input:realpath 的缓冲区按 PATH_MAX 给 Linux 上 PATH_MAX 是 4096,加固过的 glibc 对 1024 字节的缓冲区直接中止进程;macOS 的 PATH_MAX 正好是 1024,所以只在 Linux 上挂。
把 release/0.40 并回 main(0.2.0)
* 按键和文字:modavd_key、modavd_input_text 走模拟器控制台 文字:编辑框有焦点且宿主输入法在用时走 ime commit(任意语言),否则 ASCII 走 event text,每 4 个字符一条、间隔 4 ms(一次发多了客体键盘队列溢出,整段丢)。按键:控制台有 event key 时发真实按键;没有时只有能打出字符的键和编辑框里的编辑键可用,其余返回 MODAVD_E_UNSUPPORTED。接口版本 3,MODAVD_CAP_TEXT 恒有,MODAVD_CAP_KEY 看控制台有没有 event key。 * 按键表照模拟器键盘的 qwerty.kl:主页键是 102,Esc 键读作返回 模拟器的键盘在客体里用 /vendor/usr/keylayout/qwerty.kl,不是 Generic.kl。键盘上没有的键(FORWARD_DEL、MOVE_HOME 等)照没有 event key 时的办法走。带 event key 的模拟器上实测:返回、主页、多任务、Esc、退格、回车。 * README:按键和文字(接口版本 3)
qiyinxi
marked this pull request as ready for review
November 14, 2026 12:05
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.
发版 ModAVDExtras v0.3.0,随 ModAVD 0.40.3。ModAVD 这一版模拟器没重编,发版分支接着用
release/0.40。release/0.40,带进按键和文字(按键和文字:modavd_key、modavd_input_text 走模拟器控制台 #19)。CMakeLists.txt的版本号、release/0.3.0.md、release/0.3.0.SHA256SUMS.txt。CMakeLists.txt的版本号和release/下新增的两个文件外,树和 main 的头 0b81b82 相同。