Open jdin opened 7 months ago
+1 I have the same problem.
Is gyro even supported? I don't think so, But would be much better if we have gyro support. I'm not expert but since moonlight android it's support gyro, i think it's possible to get on switch.
Yes it should be as of version 1.0. it is stated in a Readme . There are commits for that and there was a feature request for that which is already closed as implemented.
Hi,recently, I verified that using gyroscopes with two Joy-Cons connected directly to the Nintendo Switch (NS) can sometimes yield gyro data. The gyroscopic fluctuations in the movement of the controllers seem to be much smaller than those of a normal Switch Pro controller. After streaming to a PC through Moonlight and then Sunshine, the controllers can be emulated as DS4 controllers and mapped for mouse movement using the Steam client. It's important to note that the gyro calibration option in the Steam settings needs to be used once for calibration.
However, sometimes things don't go as smoothly. During gameplay, there may be sudden confusion in gyro data, causing the mouse on the PC to constantly drift towards the bottom of the screen, making normal usage impossible.
The most likely reason is that the configuration of Sunshine on the PC side cannot persist well; whenever I forcibly change the controller emulation to DS4, it inexplicably reverts to the default settings, including changes I've made to the display language, which always become ineffective. So, before starting the streaming, make sure to check whether the Input Config options of Sunshine are still valid.
So, I found one thing to improve and one issue in Gyro implementation:
As improvement, I started to report gamepad "Features" with gyro support so Sunshine could select PS4 controller as default automatically.
Also I realised that Switch reports Gyro values in radians while Sunshine should receive values in degrees, so I've started to convert them.
You can try this improvements in this build
So, i tried that's build it has improvement than before but very rough,shacking,jaggy? (i don't know how describe in english) but surely its still unusable for now, hopefully it can be improved thanks for your hardwork thoug. :)
Why GitHub has no crying emoji as reaction, because I want to cry 😭
Wait, wait. I tried the new build with gyro improvement too. The sensitivity issue is now fixed, way better than before and previous release. Can be definetely be improved even further and smoother that this but it's now way more usable than before.
About the roughness mentioned here, I believe the bottleneck might be HOS itself: i tried playing with gyro in front of my PC monitor where I stream from and there was almost no visible lag: the input lag and roughness seemed to be on the switch side. I might record an example of a gaming session if it proves to be useful.
Thank you once again for the amazing work!
I’ve done more gyro testing throughout the weekend and I gotta say the improvement is noticeable. Playing through steam input and adding some smoothness actually makes it very good. Can definitely be improved concerning smoothness. When docked, instead, pro controller doesn’t register any gyro input. What was the issue with user orcavia to say it was unusable? It’s working pretty good on my end right now.
For pro controller I probably didn’t create a gyro profile for it, only for joycons, need to check it
Sorry it was a Steam issue. Pro controller gyro is working. My bad.
At the same time, I noticed a strange behavior with pressing and holding multiple buttons. I was playing Helldivers 2 (but tried other games): holding a button and pressing another button or moving the right or left stick in combination (as sometimes happen for weapon wheels in games) produces strange results. It seems like the main button is pressed and released constantly.
Lb/rb + other buttons or x/y + left/right stick doesn’t work. The sequence Interrupts while pressing buttons or moving sticks in combination.
been using latest beta with gyro improvement.
Yes, for buttons I probably messed with something, in gamepad tester I saw that buttons constantly flickers on holding them. I think something wrong with my implementation of gamepad features notification
More fixes here, test it please
Nope, not this, but this
Woah, that's build fixed my problem, Previously i bit struggle when i want to sprint by pressing L3 I thought it was my controller. 😅 But now I use that to build its work as intended now i can run flawlessly, Thanks a lot for this fix! 👍
Last build is working perfect! Buttons issue is fixed. Thank you very much 😊 this homebrew app, now with correct gyro support, has become amazing. Been playing Helldivers 2 on my sofa handheld @ 10mbps and it’s been an almost flawless experience.
Indeed, the new build is perfect. I have tested it a bit and all the problems that I have faced in the previous build are gone. I will test it further and let you know if I see anything ...
So, could I declare this issue as "Ready for Release"?
So, could I declare this issue as "Ready for Release"?
Gyro works very good now. The only remaining thing that comes to my mind is the following: when detached, the joycon transmitting gyro coordinates currently is the left one. While in other switch games and fps (such as Doom, Wolfenstein etc) gyro movement is normally assigned to the right joycon. If you have time to spare and want to include this change, it might be a nice addition.
~More fixes here, test it please~
Nope, not this, but this
Hi, can I download this build and try it ? I don't understand the link and how I can test the build.
@john-ee, yes, you can.
You could open Actions tab in the top of the GitHub page, select latest build, and click on Moonlight-Switch.nro in Artifacts section
First of all, thanks for the great tool!
Everything works fine for me except gyro. I have the latest release of Moonlight-Switch (1.0.0) in combination with Sunshine 0.22.2 on my switch OLED. And gyro works fine if I use it on the console itself for native games. I have forced DS4 as a controller on the sunshine side. And my switch is indeed recognised as a playstation controller but still no gyro.
These are the logs from sunshine:
I have spent already quite some time investigating but no luck. Did I forget to do something?
Switch OLED Moonlight-Switch: v1.0.0 Sunshine: 0.22.2