-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add mouse relative check and set appropiatley to fix issue #12994
Conversation
This has been tested in x and kms with ./configure --disable-discord --disable-qt --disable-cdrom --disable-x11 --disable-caca --disable-sdl --disable-sdl2 --disable-opengl1 --disable-ffmpeg --disable-flac --disable-wayland --enable-kms --enable-opengl --enable-vulkan |
What will this do? Fix restricted mouse areas in cores like puae and scummvm? edit: oh lightguns. FYI a very similar problem occurs since forever for other mouse cores where you have to move the mouse using the touchpad and it occasionally 'changes' the area of the screen available if you keep trying. It's unusable but i guess there are not many people reporting or complaining or using a mouse core in retroarch and not on windows, because people have no taste. |
It would be nice to clarify something though. RetroArch/input/drivers/udev_input.c Lines 367 to 435 in 12f7875
the pointer and lightgun use this. Now correct me if im wrong the pointer and lightgun should be absolute devices yet its falling back to relative if its not abs should we really be doing this that my only confusion on this matter. @ i30817 |
It happens in all cores that need a computer mouse and you're using a touchpad. PUAE, or scummvm for instance. The area where the touchpad can operate doesn't fill in the whole game screen or is offset from the center. The weird part is that that area can change so if you frenetically push back and forwards along a axis you sometimes can 'drag' that area to other parts of the screen. It's unusable. But i don't see anyone else complaining so i assume it only doesn't work in linux and every user is on windows or something. This is with the X input driver in X11, and with udev for controllers (which i don't use and i don't think matters for mouse, but who knows). |
@i30817 the udev input driver is what this applies too. Change that to udev. I'm going to get a laptop hopefully today I need to test some things there are two issues. I need to check properly. I would definitely open an issue if I was you and report if udev and x11 are doing the same. A restart is needed when changed. Wayland you can't change the input driver. |
There are still some issues in this driver that will need more time. The hotplug add remove isint setting /setting removing mouse names and touchpad devices are starting at zero as they are called separately from mice in udev_input_init(). Obviously static wasnt the way to fix it since its called more than once and it was only originally added for logging now it setting the name for ra it will need fixed. [INFO] [udev]: Keyboard #0: "Power Button" (/dev/input/event3). |
@jdgleaver @twinaphex the code is complete now. The hotplug will add names now and a relative check. Sorry it took so long have been really busy with work. |
OK, we'll merge as is. I will be doing some style nits later on but nothing that will affect anything on a fundamental level. Thanks for all your efforts. |
The old code was traced and it returned zero values. The relative check was added to make the code clear and its a mouse as well. This should put the issue to sleep. Will test on the pi at the weekend cant see there being any issues.
@jdgleaver @twinaphex @bozothegeek