-
-
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
udev fix dolphinbar and safeguard against not adding devices with no mouse or touch buttons detected #13143
Conversation
Do other pointer devices still work after these changes as expected? |
yes tested with two touch pads and dolphin bar as well a a few relative mice. The bug was only in the abs detection we checked it against a touch button only i assumed a all pointer devices would have a touch button but the dolphin bar has a mouse button. Both rel and abs have now been set to enable the device and print a warning if a mouse or touch button isint detected so the pointer will still work and libinput record can tell us if we are missing check that needs added we didnt account for. I couldn't really get any feedback from anyone with the device. I posted the relevant info here to fix in a patch |
also forgot to mention RA logs the device type as well now.
|
OK. There will be a release this weekend, so this PR will have to remain in waiting until next week. Next week I will whip out a Wii Remote bar and see if I can test this myself as well. |
no problems at all you will need a dolphnbar or a bluetooth setup that works with the ir as a mouse device both should have no issues. Some setups require you to have nunchuck plugged in when using the bluetooth method for the ir to work if your not using the dolphinbar. |
@twinaphex Could you test this PR? |
@twinaphex I bought a dolphin bar to see what was going on we werent detecting it because it was a abs device with no touch pointer it use a mouse button instead and we where only looking for the touch button on abs detection. I have updated the code to accept devices that dont have a touch buttons or mouse buttons to log that information and add the device anyway so the pointer works and someone can look into the issue without having to buy the hardware by simple asking the user to do some things from the terminal.
There is an issue separate from this one I dont know retroarch codebase well enough to dig into it more at the moment. When we hot plug the device order changes.
I dont know if we can somehow save the device index as well as the name and add the mouse and device name compare instead if found instead of just the index when we set it in the ui. This is more a user friendly thing rather than a requirement.
the function needing updated is here.
RetroArch/input/drivers/udev_input.c
Lines 254 to 280 in c79b60b