Linux touchscreen auto-detection for vid_touchscreen - #6
Open
dixonSolutions wants to merge 1 commit into
Open
Conversation
Keep the existing overlay behind vid_touchscreen, and derive it from vid_touchscreen_mode (off / auto / always) plus a touch-only filter so desktop players are unchanged while tablets and phones opt in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
vid_touchscreen_mode(0 = off, 1 = auto, 2 = always) andvid_touchscreen_touchonly./proc/bus/input/devices, DMI chassis type, and Ubuntu Touch / Lomiri, then derivevid_touchscreenso desktop players stay on mouse/keyboard.SDL_FINGERDOWNbecause SDL often reports zero devices until a finger lands.This is the engine half of a Linux tablet port (Xonotic-Touch). The CSQC arena overlay stays out of this PR on purpose. Official development is on GitLab; this GitHub PR is so the patch is reviewable here as well. We will follow up on GitLab / Matrix
#dev:xonotic.org.Test plan
vid_touchscreenstays 0 with mode Auto.vid_touchscreen.vid_touchscreen_rescanreprints detection results.DP_MOBILETOUCH) still force Always.Made with Cursor