Skip to content

Conversation

@wefcdse
Copy link

@wefcdse wefcdse commented Sep 17, 2025

i accidently included a commit(use trackpad 3 finger click as middle button) in fix touchpad scroll support when swap axis. This implementation was broken, i fixed it in this commit.
This implementation is still broken and the quality of the code was not quite good, but this works better than the old implementation and works for most of the times.

@ClassicOldSong
Copy link
Owner

Ah ok, I can revert that commit and you can work on this PR for a better version

@wefcdse
Copy link
Author

wefcdse commented Sep 17, 2025

这个提交的内容基本可用,主要的更改是改了不属于trackpad类的TouchContext接口(加了有默认实现的方法setActualPointerCount)和在game类里加了好多个setActualPointerCount,应该不会影响其他功能

@wefcdse
Copy link
Author

wefcdse commented Sep 17, 2025

我在我的三星tab10 fe上进行了测试,在多数情况下能够正确的触发鼠标中键的,失败的情形不确定是否是我的触控板的问题还是代码的问题

@ClassicOldSong
Copy link
Owner

我现在没设备用来测试触摸板了。。。

之前买的一加平板Pro触摸板在升级coloros15以后就用不了了,系统直接没发送motion event过来,联系客服也没结果,后来干脆卖掉了

触摸板这块挺头大的,不同厂商不同系统版本都有细微不同的表现,非捕获模式问题更多。。。所以我放弃了。。。

目前Android平板这块最不值得购买的就是官方键盘套,又贵又broken,真不如单买个蓝牙折叠键盘

@ClassicOldSong
Copy link
Owner

以及第三方键盘带的触摸板把自己报告成鼠标反而是好用的。。。

@wefcdse
Copy link
Author

wefcdse commented Sep 17, 2025

我也没有其他设备能测试这个实现到底能不能用了 悲,三星的触摸板也有好多的毛病而且xy轴还是反的,并且大概只支持到三点触控。
这个pr的代码我可能不会再改了,感觉没什么意义了(安卓的触摸板大概用的也很少)。而且sunshine的触摸板支持好像也不太好。这段代码应该不会破坏其他的功能,应该可以凑合着用大概,如果写的丑的话就关掉吧,并且最好删一下use trackpad 3 finger click as middle button这个commit,这个的实现问题比较大基本不能用,是之前不小心合到那个pr里的实在不好意思。
无论如何谢谢你做了这个版本的moonlight!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants