concept: support external displays created by Android desktop mode#127
Closed
axonasif wants to merge 2 commits intoXtr126:devfrom
Closed
concept: support external displays created by Android desktop mode#127axonasif wants to merge 2 commits intoXtr126:devfrom
axonasif wants to merge 2 commits intoXtr126:devfrom
Conversation
|
oh my god AXON making PoC |
Author
Lol. How's it going man |
I'm doing great, thanks for asking |
Owner
Author
Owner
|
Closing since we now have external display input working at least on some devices/Android versions, it could be improved later on. |
Author
|
Thanks! |
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.

The code is just for checking if it's possible, not for using. Most of the java code was AI generated, I think we would need an profile option to specify the desired display ID in XtMapper. If you're interested and have the time to properly implement this, I would really appreciate it!
I certainly don't know what I'm doing, so going to dump all the "research" I've done here in case that's any helpful.
How to get info about all the displays (including external ones)
How to test if you can simulate input on an external display
If you have a samsung device with display out, you can just enable dex and find the display ID. For other phones, you will need to enable "force desktop mode" in the developer settings. It also helps if you enable "pointer location" for testing where the input is going.
Once you have a list of display IDs (sometimes there can be extra virtual displays for input handling), you can test like so:
# Replace -d 0 with other IDs that you found, 0 is usually the main built-in display input -d 0 swipe 100 200 500 200 3000What's "working"
What's not working or needs work