Update README.md

This commit is contained in:
TrueZhuanJia
2024-05-18 00:04:38 +08:00
committed by GitHub
parent 743dad5f37
commit d7aa2d00ba
+11 -5
View File
@@ -3,7 +3,7 @@
# 适用范围 Applies to
适用有强烈多点触控串流游戏需求的玩家, 尤其是米家自带原生触屏UI的游戏。 作为资深搓屏党一员,我认为自己对这种玩法的需求判断是准确的。具体请看主要特性列表。 <br>
Players who have a strong demand for multi-touch streaming games, especially those who play Mihoyo games with built-in native touchscreen UI . As a senior player of the "touch screen club", I believe my judgment of this kindof gameplay requirement is accurate. Please see the main feature list for details
Players who have a strong demand for multi-touch streaming games, especially those who play Mihoyo games with built-in native touchscreen UI . As a senior player of the "touch screen club", I believe my judgment of requirements to this kind of gameplay is accurate. Please see the feature list for details.
<br>
# 注意事项 Notice
@@ -20,7 +20,7 @@ Feel free to merge the code, whether publicly or privately. However, if you find
2023年12月,某位匿名Up主发现了原神PC版的隐藏触屏UI。 我作为一个从ipad mini系列开始入坑原神、PC上操作不来键鼠,更不会用手柄的资深搓屏玩家, 开始对ipad上用触屏UI直接操作原神充满期待。
于是我在阿西西QQ群里承担了大部分iOS版的测试,在2024年元旦前,终于有了第一个差不多通用的多点触控iOS版本。但这个版本并不完善, 多点触控经常性的卡死对游戏体验影响非常大。
由于阿西西作为手柄玩家和非专业iOS开发者对iOS moonlight多点触控串流并上不心。2024年4月本人不得不亲自下场,找到bug根本原因并提交解决代码, 使之第一次可以正常使用多点触控。
由于阿西西作为手柄玩家和非专业iOS开发者对iOS moonlight多点触控串流并上不心。2024年4月, 本人不得不亲自下场,找到bug根本原因并提交解决代码, 使之第一次可以正常使用多点触控。
<br>
<br>
@@ -30,12 +30,16 @@ Feel free to merge the code, whether publicly or privately. However, if you find
经过早期Bug修复和后续优化, 多点触透传机制已经非常可靠。
<br>After early bug fixes and subsequent optimizations, the multi-touch pass-through mechanism has become very reliable.
![testt5](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/46af86e8-ef69-4923-a36b-0a7b54856b22)
<br><br>
3. 重构退出会话手势识别,防止意外退出。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 high-frequency 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>
<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>
![image](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/b2fec7b0-c82a-4bca-aec2-0620f5185b2e)
![longSwipeToExit](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/a177b3e6-9b28-4274-b1b9-e4011a8caf86)
<br><br>
@@ -46,8 +50,10 @@ Feel free to merge the code, whether publicly or privately. However, if you find
为此我重写了一个TapGestureRecognizer, 识别率几乎达到100%且不影响三触点拖动。为避免误触导致键盘意外唤醒, 为触发手势识别所要求的手指数量 增加了设置菜单。推荐手机设为三指触发, 平板设为四指或更多手指触发(用平板操作你的手掌可能会碰到屏幕,形成第三个触点)
<br>
The official version of Moonlight-iOS triggers the local keyboard switch when it detects three touch points on the screen, a mechanism that makes three-point dragging completely ineffective. <br> I also tried UITapGestureRecognizer provided by iOS native API: the success rate of gesture recognition would decrease, and even continuous failures could occur. Therefore, I rewrote a TapGestureRecognizer with a recognition rate of almost 100% that does not affect multi-point dragging.
To prevent local keyboard from being invoked unexpectedly, I add the required number of fingers for tap recognizer to the setting menu. It is recommended to set three-finger triggering on phones and four or more on tablets (as your palm might touch the screen, forming a third touch point when using a tablet).
![image](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/6d62fa86-5f89-42e2-8504-456bef04ba4c) <br> Here's a *.gif example of setting "Fingers to Tap" to 4 on my ipad mini6: <br>
To prevent local keyboard from being invoked unexpectedly, I add the required number of fingers for tap recognizer to the setting menu. It is recommended to set 3-finger triggering on phones and 4 or more on tablets (as your palm might touch the screen, forming a third touch point when using a tablet).
![image](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/6d62fa86-5f89-42e2-8504-456bef04ba4c)
<br> 这是在平板上将手指数量设置为4的情况:
<br>Here's a *.gif example of setting "Fingers to Tap" to 4 on my ipad mini6: <br>
![testt5](https://github.com/TrueZhuangJia/moonlight-ios-NativeMultiTouchPassthrough/assets/78474576/747854af-d2aa-467c-9c94-eb07bdf52868)
<br>