Moonlight-Switch icon indicating copy to clipboard operation
Moonlight-Switch copied to clipboard

Gyroscope support wrong input.

Open orcavia opened this issue 1 year ago • 5 comments

Just tried the gyro support. It's now working smoothly, but there is wrong input compared to the original DS4. In my case, I tried it in the game HFW using yaw mode gyro.

For Y aiming, it's correct, but for X aiming, you should rotate (or tilt) the Switch to get the X value, while it should be yaw to the left/right.

orcavia avatar May 28 '24 20:05 orcavia

Thanks for feedback, I'll check it

XITRIX avatar May 29 '24 07:05 XITRIX

you might be confused with my english 😅 so i made this simple animation that might help wrong Expected

orcavia avatar May 29 '24 08:05 orcavia

EDIT: I think your current implementation it's already correct for docked mode.

But for handheld mode it's feel strange when aiming for X axis Since the controller faced vertically unlike in docked mode which holds the controller faced horizontally.

For comparison try NS games that support gyro like Splatoon in handheld mode and then play PC games that support gyro on Moonlight. You will see the difference in how gyro (especially X value) work.

orcavia avatar May 31 '24 06:05 orcavia

That's the best explanation of the problem I've ever saw :D

Thanks a lot, I understood what's the problem from the very beginning, I'll try to check it when I'll have time

XITRIX avatar May 31 '24 09:05 XITRIX

Just checked it with Steam gyro calibration, looks like it works the same as Dual Sense controller (at least from steam calibration screen perspective)

XITRIX avatar Aug 03 '24 14:08 XITRIX