-
Notifications
You must be signed in to change notification settings - Fork 710
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
[Issue]: Bluetooth and USB mouse axis rotated on some Android 13 devices #1240
Comments
Do you know if your tablet has a "native" orientation of portrait? I wonder if the coordinates are now normalized to the natural orientation of the display. When it boots does the logo show up in the portrait or landscape orientation? |
The native orientation of my tablet is Landscape. |
Maybe adding an option to rotate the Axis in the configuration menu sounds like a good idea! |
I looked through the Android AOSP source code to see if I could figure out what changed in Android 13 and it looks like there was a bug that shipped in the original Android 13 release that caused this issue. The bug was resolved by this commit: https://cs.android.com/android/_/android/platform/frameworks/native/+/258e2b909a91e893bf8cdd5b46ac7a9446de2549 I looked through the various Android 13 branches in AOSP and confirmed that fix was not present in the original Android 13 release (TP1A), but it was present starting in the December update for Pixel devices (TQ1A). Depending on when manufacturers branched from the AOSP code for Android 13 and if they merged in fixes from upstream AOSP code, some Android 13 devices may or may not be affected. I will test and see if this behavior can somehow be detected and corrected automatically, but it may not be possible if there's no other reference available in the input events to determine how to undo the incorrect rotation performed by Android. |
Cgutman, you are a god level human, and i hope your friends and family love you as much as you deserve. |
I just discover that if i split the screen in half, and use Moonlight in one side and at the same time another app in the other half of the screen, then the mouse moves just fine. |
Unfortunately, it does not seem possible to detect the swapped axis values reliably. Unlike There is probably no real solution other than asking your device manufacturer to incorporate the patch I linked or wait until Android 14 is released for your device. I have a build of Moonlight that just swaps the X and Y axes for all |
@cgutman Thank u very much for your time, but im sorry to say that the X axis is inverted... |
Ok, this build inverts the X axis too - https://drive.google.com/file/d/1956ffbPYfCEOexGUmsHQg2WYKVBCl8eK/view?usp=sharing |
It works perfect!!! You are, from now on, a god like human to me. |
+1 to add the optional "Invert X" and "Invert Y" setting. Thanks so much @cgutman for finding the root cause and providing the modified builds! |
Can you send a latest version, I also encountered this problem, the same Lenovo Android tablet, the model is Pad Pro 12.7, thank you very much |
+1 for the option of inverting the mouse axes in the Moonlight settings! |
Knowing Lenovo we cant expect any support from their absolute bots aka customer support. Anyone know a workaround for this ? I recall I got it fixed temporarily by running my games etc in borderless mode via parsec but the problem still persists on Android games and any fullscreen app. I regret buying this shit tab every day |
Describe the bug
Just updated to Android 13 and mouse has changed axis. Now up is left and down is right.
On Android 12 USB and Bluetooth mouses work just fine.
Steps to reproduce
Update to Android 13 and try to use any mouse.
Affected games
All, and desktop.
Other Moonlight clients
PC
Moonlight adjusted settings
No
Moonlight adjusted settings (please complete the following information)
Moonlight default settings
Yes
Gamepad-related connection issue
No
Gamepad-related input issue
No
Gamepad-related streaming issue
No
Android version
13
Device model
Lenovo Tab 13
Server PC OS version
Win 10
Server PC GeForce Experience version
Last
Server PC Nvidia GPU driver version
Last
Server PC antivirus and firewall software
Windows
Screenshots
No
Relevant log output
Additional context
Non
The text was updated successfully, but these errors were encountered: