-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow toggling touchscreen mode at runtime #14075
Conversation
90f311d
to
4f285d2
Compare
2b80c35
to
dd4a7eb
Compare
For clarity, it would be good to change this to |
7d16092
to
0648bc0
Compare
Signed-off-by: David Heidelberg <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also remove TOUCHSCREEN_GUI
from .luacheckrc
file.
Signed-off-by: David Heidelberg <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still looks good
Co-authored-by: rubenwardy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
Follow up: #14400 |
Signed-off-by: David Heidelberg <[email protected]> Co-authored-by: Gregor Parzefall <[email protected]>
This fixes a regression introduced by 34286d7 / luanti-org#14075.
What
Allow runtime switching between desktop and touchscreen mode.
How
This PR replaces hardcoded
#ifdef
s with setting (enable_touch
).Resolves:
Problem solved by this:
Ability to distribute one binary for touchscreen enabled and classic (desktops and laptops without touchscreens).
https://floss.social/@okias/111417351641760633
People love to play Minetest on Linux phones. Some of these phones are convergent, so they work as desktop when connected to USB-C.
Also we have Linux tablets and convertible PCs.
How to test
In the settings appear new checkbox for the touchscreen. You can check it or uncheck it and see whats going to happen.
TODO
Depends
master
branch), for code applicable on 5.8, use https://github.com/okias/minetest/tree/linux-touch-5.8