what would cause mouse event1 to show up but not mouse0
-
Hello - I'm trying to learn more about setting up a controller that acts as a mouse.
I have a retropoe image that is recommended to use with this controller, and when I run in verbose mode (using an nes emulator), I see that the mouse is successully loaded:
[INFO] [udev]: Keyboard #0 (/dev/input/event0). [INFO] [udev]: Keyboard #1 (/dev/input/event2). [INFO] [udev]: Mouse #0 (/dev/input/event1). [INFO] [udev]: Mouse #1 (/dev/input/mouse0).
However, when I try to use this controller on my stock RetroPie image (my eventual goal is to use my own image, which has a bunch of stuff I already have setup on my arcade), I don't see the mouse0 binding:
[INFO] [udev]: Added Device Keyboard#0 Unknown SindenLightgun Keyboard (/dev/input/event0) . [INFO] [udev]: Added Device Keyboard#1 RPI Wired Keyboard 4 (/dev/input/event2) . [INFO] [udev]: Added Device mouse#0 Unknown SindenLightgun Mouse (/dev/input/event1) .
I guess one potentially very obvious difference from the log formatting is also that the image that works is retroarch 1.8.8, whereas the one that doesn't work is 1.9.7.
When I do
ls /dev/input
I do see that mouse0 exists, I just don't see it added in the logs.
If anyone has any pointers on where I can learn more about what is happening, that would be great!
-
-
I think the version of RetrorArch included (1.9.7) in RetroPie now has a bug/regression regarding lightguns operations/detections (see for instance this post.
If you have a Sinden Lightgun, you can use the older RetroArch version or wait until the RetroArch gets a fix and it's included in RetroPie.
-
@mitu said in what would cause mouse event1 to show up but not mouse0:
I think the version of RetrorArch included (1.9.7) in RetroPie now has a bug/regression regarding lightguns operations/detections (see for instance this post).
If you have a Sinden Lightgun, you can use the older RetroArch version or wait until the RetroArch gets a fix and it's included in RetroPie.
Ah cool - that’s really good to know. The post link up above didn’t lead to anything, but I’ll search around more.
-
Somehow I've made an error when posting the link to the forum post - should be fine now.
-
@mitu thanks. That doesn’t seem like the same issue - that issue seems like the lightgun doesn’t work on parts of the screen.
My issue is that the mouse doesn’t seem to be loading at all, from what I’ve been able to debug.
-
It's not the same problem, it's just an example of regression in relation to lightgun's operation that's present in the 1.9.7 RetroArch version. Another possibility is that your image has a patched RetroArch with specific functionality added for the Sinden Lightgun.
-
This inspired me to upgrade my working image to retroarch 1.9.7 - and sure enough the image stopped working. So maybe it’s not something I can solve on my own here.
-
Just to answer my own thread, it looks like this is actually normal.
According to the docs in retroarch 1.9.6+, only the /dev/input/event bindings show up in the logs. It's only in earlier versions that use /dev/input/mouse.
So I guess things are loading correctly after all, and I have some other problem!
-
@mitu sorry for doubting you, I think you were right after all. I downgraded to 1.9.5 and things are working great now!
Looking forward to retropie upgrading when possible! I like to try to stay on the official latest branch when I can.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.