XITRIX / Moonlight-Switch

Moonlight port for Nintendo Switch
979 stars 51 forks source link

[BUG] Gyro spontaneous output, messes up aiming #169

Open VoxelTek opened 5 months ago

VoxelTek commented 5 months ago

Hi there,

When using gyro, I get spontaneous and unprompted input. I feel the best way to show this is with a demonstration.

https://github.com/XITRIX/Moonlight-Switch/assets/53562267/16837586-5fb3-4653-a24f-12d3791d8bdc

hl2.webm

As you can see, the gyro input is not stable. The jittering is very, very annoying, and makes pretty much every game impossible to play using it.

I am sure that this isn't a problem with my Switch itself or my PC, as using another PC as a client and running gyro input on that works fine, and gyro aiming functions fine in Switch games.

If I am doing something wrong, please let me know, and I'll attempt to fix the issue.

Kind regards, @voxeltek

XITRIX commented 5 months ago

Yes, that's looks really bad and definitely should not behave like that, I'll try to check if I can reproduce that.

Just in case, which version of app you have installed?

VoxelTek commented 5 months ago

Hey! Thanks for investigating, I'm currently running Moonlight-Swirch V1.1.0.

XITRIX commented 5 months ago

I have not enough time to work on it right now, but I'll pin this issue, so when I'll have some time I will not forget about it

markandgo commented 1 month ago

Not sure if this is related but I am using Sunshine v0.23.1 with Moonlight v1.2.1, and I notice that the motion control drifts over use/time. Turning left and right would eventually reverse, e.g. left would turn right. Turning up and down would become diagonally up or down. Noticed this while playing Yuzu and TOTK.

EDIT: Just a note, this is in handheld mode.