Skip to content
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

Touch emulate as moonlight-nx #83

Closed
maytinhdibo opened this issue Dec 14, 2022 · 13 comments
Closed

Touch emulate as moonlight-nx #83

maytinhdibo opened this issue Dec 14, 2022 · 13 comments

Comments

@maytinhdibo
Copy link

In Moonlight-NX, we can use the touch screen on Switch as touchscreen on Windows. With it, we will use touch screen con Citra on PC.
image

@XITRIX
Copy link
Owner

XITRIX commented Dec 14, 2022

Hmm, nice point, I'll try to figure it out

@Skyyblaze
Copy link

Sorry to bug but is this still being looked into? I had both Moonlight NX and Moonlight Switch on my system for exactly this reason as I found Switch generally be better but NX was useful for the touch-screen feature. As of the latest Nvidia GameReady driver NX stopped working though :(

@XITRIX
Copy link
Owner

XITRIX commented Mar 8, 2023

Hi, I'm not actively maintain current version of Moonlight-Switch, cause I'm creating my own UI framework at this moment. I think when I'm done I'll rewrite entire Moonlight-Switch from scratch, so I don't want to spend extra time to the stuff I'll rewrite anyway. If I'll have some spare time, I'll try to implement this, but I could not promise it, sorry.

@XITRIX
Copy link
Owner

XITRIX commented Mar 8, 2023

Ok, nevermind, I've found some time to implement this. I did not tested it too much, but seems like it's working.

@Skyyblaze, check out this build and say if works fine or it need some tuning.

@Skyyblaze
Copy link

Thank you so much, also for your future work! I'm waiting for the build to finish and will then report back :)

@Skyyblaze
Copy link

@XITRIX Hmm it seems to work semi-correctly. It does partially work like it should but the mouse-position seems to be relative to where the mouse currently is on the screen instead of being absolutely where I touch which leads to lots of weird inputs :(

@XITRIX
Copy link
Owner

XITRIX commented Mar 9, 2023

Ok, I'll try to check what's going wrong, I think I messed up with an order of mouse position change and button click

@Skyyblaze
Copy link

Ok, I'll try to check what's going wrong, I think I messed up with an order of mouse position change and button click

Thank you! Tag me when you have a new build, I'll gladly test again :)

@EzWiz21
Copy link

EzWiz21 commented Aug 18, 2023

Native touch support is available on Sunshine nightly. It’ll be better to use that rather than emulating it with the mouse.

@XITRIX
Copy link
Owner

XITRIX commented Aug 18, 2023

@Rena21, it should be supported by moonlight-core first to make it possible to implement in Moonlight-Switch

@EzWiz21
Copy link

EzWiz21 commented Aug 18, 2023

It’s available in core since moonlight-stream/moonlight-common-c@4a48024

@GrayXu
Copy link

GrayXu commented Jan 4, 2024

this feature will be very useful in many touch-based games, thank you for your contribution!

@XITRIX
Copy link
Owner

XITRIX commented Feb 6, 2024

Implemented in v1.0

@XITRIX XITRIX closed this as completed Feb 6, 2024
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

No branches or pull requests

5 participants