Draft: Discussion about MINETEST patch for runtime TS detection
Minetest runtime cannot detect touchscreen, so let's compile minetest same way as it's done on Android to get on screen control.
There is a open issue about it here: https://github.com/minetest/minetest/issues/10062
Tested on OnePlus 6T (it's playable, both portrait and landscape mode):
Merge request reports
Activity
@z3ntu woke up and this was exactly my thought.
@craftyguy one line, I think I'll propose this change to Alpine with
minetest-touch
as a conflicting package withminetest
and one sed over.*metainfo.xml
edit: but please do not close so far.
Edited by David Heidelbergkookbook
package might be a decent inspiration how to split it aports-wise (it's not compiled twice there but I think you get what I mean)https://pkgs.alpinelinux.org/packages?name=kookbook*&branch=edge&repo=&arch=aarch64&maintainer=
https://git.alpinelinux.org/aports/tree/community/kookbook/APKBUILD
Edited by Luca Weiss
- Resolved by David Heidelberg
Tried this today (with mrtest of course
) and it really works pretty nice! Super happy to see a game on pmOS with touchscreen support!
We need a decision. So far, I'm unable to autodetect touchscreen (haven't spend effort + in 5.9.0 will migrate input to SDL2, so not much sense to put effort into old way)
What I can do with https://github.com/minetest/minetest/pull/14075 is toogle touchscreen from settings (not hardcoded anymore).
- If I'm going ask Alpine to ship the patch, it will be with disabled touchscreen and default to keyboard (approx these are optimal settings which needs to be adjusted in
~/.minetest/minetest.conf
or set in the settings one by one:clickable_chat_weblinks = false autojump = true
- we can have the patch only in pmOS, with default
-DENABLE_TOUCH=1
which sets these at build-time. But on other side for OPTIMAL KEY/MOUSE gameplay these needs to be altereds/false/true/
Your choice!
Edited by David Heidelberg- If I'm going ask Alpine to ship the patch, it will be with disabled touchscreen and default to keyboard (approx these are optimal settings which needs to be adjusted in
added 130 commits
-
3ce6efaa...c8edef78 - 129 commits from branch
postmarketOS:master
- 5683a174 - minetest: compile with touchscreen support
-
3ce6efaa...c8edef78 - 129 commits from branch
Few news, see https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/55520
- LTO (smaller binaries)
- basic autodetection of touchscreen (no need to edit config for basic stuff)
Touchscreen switch got merged, what about keeping the package until there will be 5.9.0? I can throw a top patch with form factor based detection (so pmOS will auto-enable touch in 99.9% cases).
Edited by David HeidelbergI'm closing this MR as we're getting really close to the 5.10 (or whatever comes after 5.9.0) release and the changes needed for pmOS devices work properly are already in and most of preparation work for the release happened (-ing) in https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/55520
Recently rebased, so feel free to try again if it's still good with your device!