Skip to content

Adding gaming touchscreen support#330

Open
VFXNO wants to merge 2 commits intoClassicOldSong:moonlight-noirfrom
VFXNO:artemis-touchscreen
Open

Adding gaming touchscreen support#330
VFXNO wants to merge 2 commits intoClassicOldSong:moonlight-noirfrom
VFXNO:artemis-touchscreen

Conversation

@VFXNO
Copy link
Copy Markdown

@VFXNO VFXNO commented Jul 28, 2025

I was struggling with using the right analog stick for camera movement, so I implemented a new touchscreen mode that works like native Android games. You can now drag anywhere on the screen to control the camera. To enable it, just switch to touchscreen to stick in touschscreen mode settings.

note : iam still new for pulling request pls check it before merging it the project works fine i may missed to upload files
enable the touchpad to right stick option
other touch screen mode will not work if this option still toggled on

Comment on lines +182 to +183
<item>6</item>
<item>5</item>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 5 and 6 are reversed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check it

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need for a separate file, please move all the contents to strings.xml

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logs too much as input events are pretty frequent, if done debugging you can comment out the logs or delete them.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gonna comment them out

conn.sendControllerInput((short)getActionIndex(), (short)1, 0,
(byte)0, (byte)0,
(short)0, (short)0, // Left stick zeroed
stickX, stickY); // Right stick only
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although it should work in good network conditions, but controller packets are not buffered, that means if you're on mobile data or far away from home, it can behave strange.

No good way to solve this though...

Copy link
Copy Markdown
Author

@VFXNO VFXNO Aug 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add buffer but it will feel strange and not responsive i think we should accept it this way
For strings.xml i gonna try to fix it later

@VFXNO VFXNO requested a review from ClassicOldSong August 9, 2025 16:06
@ClassicOldSong
Copy link
Copy Markdown
Owner

Hi, any updates?

@ClassicOldSong
Copy link
Copy Markdown
Owner

ClassicOldSong commented Sep 16, 2025

Upon looking at the code more carefully, I think we should just make the touch controller mode a mouse emulation mode instead of a checkbox. Also, please avoid editing the line ending so there won't be a huge whole file diff.

@rishisinghawadhiya
Copy link
Copy Markdown

Owner

HI sorry for late replays i am really busy in my college it may take time >u<

hey broTill when will this feature come? .............I’m eagerly waiting for it

@VFXNO
Copy link
Copy Markdown
Author

VFXNO commented Oct 26, 2025

if you really need it i can send you compiled apk version or you you compile it by yourself go to my branch download it then use androidstudio to compile it

@VFXNO
Copy link
Copy Markdown
Author

VFXNO commented Oct 26, 2025

@zekorial
Copy link
Copy Markdown

https://github.com/bisher13/moonlight-android/tree/artemis-touchscreen

Can you send me the APK brother I’m not a developer I don’t know how to do all this please brother

Brother have you tested the app how’s the experience

Will I get an experience like in this video?
https://youtu.be/ySDOAyTY-5w

@VFXNO
Copy link
Copy Markdown
Author

VFXNO commented Oct 28, 2025

pretty good honstly as i devolped it i made sure it not looks uncanny its like playin on android yes the same as the video

@zekorial
Copy link
Copy Markdown

pretty good honstly as i devolped it i made sure it not looks uncanny its like playin on android yes the same as the video

Can you share the apk Link brother. I don't know how to compile code and Andriod studio

Upload on drive and share the link

@VFXNO
Copy link
Copy Markdown
Author

VFXNO commented Oct 29, 2025

app-nonRoot_game-debug.zip
here you go send your feedback here after the test

@rishisinghawadhiya
Copy link
Copy Markdown

app-nonRoot_game-debug.zip here you go send your feedback here after the test

thanks for apk

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.

4 participants