Update README.md

This commit is contained in:
TrueZhuanJia
2024-05-26 18:01:33 +08:00
committed by GitHub
parent 5b9f29296e
commit 1e0a244b49
+10 -6
View File
@@ -29,17 +29,21 @@ Feel free to merge the code, whether publicly or privately. However, if you find
- ### 首创唤醒键盘时,抬起串流界面,保证输入区域不被键盘遮挡。
### First implemented stream view lifting for local keyboard, prevent remote typing view from being blocked by local keyboard:
由于iOS悬浮键盘太难用, 只好做了这个功能。<br>
I did this because iOS floating keyboard sucks.
I did this because iOS floating keyboard sucks.<br>
![image](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/e1ac15d4-b4ef-4abd-9d25-13159a9ff4d4)
![ViewliftExplained - Copy](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/54ecd367-3ebb-43a1-95bb-358e3a9ccc54)
![testt7](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/6230c225-1296-4be0-b64d-8980fce649c3)
<br><br>
- ### 键盘工具栏可能过菜单开启或关闭。
### Configurable local keyboard toolbar:
![image](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/88a2eca7-dbbc-46c8-a60e-065a7f44b9fa)
<br><br>
- ### 健壮的多点触控透传。
### Robust Multi-Touch Pass-Through.
经过早期Bug修复和后续优化, 多点触透传机制已经非常可靠。
<br>After early bug fixes and subsequent optimizations, the multi-touch pass-through mechanism has become very reliable.<br>
![testt5](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/46af86e8-ef69-4923-a36b-0a7b54856b22)
@@ -49,7 +53,6 @@ Feel free to merge the code, whether publicly or privately. However, if you find
- ### 重构退出会话手势识别,防止意外退出。
### Refactored Session Exit Gesture Recognition to Prevent Accidental Exits.
由于米家游戏UI左边的方向轮靠近屏幕边缘, 原版的退出桌面手势识别非常容易高频操作下触发,你无法想象在深境螺旋里,桌面突然退出的绝望。我不得不自己写了一个识别器替代iOS原生API, 要求从屏幕边缘滑动到一定距离才能触发退出桌面。<br>
并且滑动距离的触发门槛、以及要求从哪个边缘开始滑动,已加入设置菜单:
<br> Due to the Mihoyo game UI's directional wheel on the left being close to the screen edge, the original exit gesture recognition was frequently triggered during intense touch operations. You cannot imagine the despair of suddenly exiting from desktop in the Genshin Impact Spiral Abyss. I had to write a recognizer myself to replace the iOS native API, requiring a swipe from the screen edge to a certain distance to trigger the exit to the desktop. The trigger threshold for the swipe distance and which edge to start the swipe from have been added to the settings menu: <br>
@@ -57,9 +60,10 @@ Feel free to merge the code, whether publicly or privately. However, if you find
![longSwipeToExit](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/a177b3e6-9b28-4274-b1b9-e4011a8caf86)
<br><br>
- ### 重构键盘切换手势识别,实现可靠本地输入法键盘唤醒、关闭。
### Refactored Tap Gesture Recognition for Reliable Local Keyboard Toggle.
Moonlight-iOS官方版在检测到屏幕上有三个触点时,直接触发本地键盘切换,这种机制将使三触点的拖动完全失效。而如果采用iOS API提供UITapGestureRecognizer, 手势识别成功率将降低,甚至出现连续无法识别的情况。
为此我重写了一个TapGestureRecognizer, 识别率几乎达到100%且不影响三触点拖动。为避免误触导致键盘意外唤醒, 为触发手势识别所要求的手指数量 增加了设置菜单。推荐手机设为三指触发, 平板设为四指或更多手指触发(用平板操作你的手掌可能会碰到屏幕,形成第三个触点)
<br>