mouse as a Zapper lr-fceumm RPi 3 b+
-
@sexbeer Can you try replacing your
nes
system'sretroarch.cfg
file with the default oneinput_remapping_directory = "/opt/retropie/configs/nes/" #include "/opt/retropie/configs/all/retroarch.cfg"
and re-try to see if mouse input works.
-
@mitu all recent tests were on a clean updated image. no system files changed
-
@sexbeer I am intrigued why your gamepad input device files have ACL permissions on them (the
+
next to the permissions in the file listing).It seems you are using an Xbox pad that is using the xpad driver. It might sound dumb but can you try without that pad connected? can you just connect the mouse and a keyboard and see how it goes?
-
@hhromic It did not help
[INFO] [udev]: Keyboard #0 (/dev/input/event0). [ERROR] [udev] Failed to open device: /dev/input/event1 (Success). [INFO] [udev]: Mouse #0 (/dev/input/mouse0). [INFO] [Joypad]: Found joypad driver: "udev". [WARN] [udev]: Full-screen pointer won't be available.
pi@retropie:~ $ ls -la /dev/input/ total 0 drwxr-xr-x 4 root root 160 Nov 24 04:34 . drwxr-xr-x 15 root root 3340 Nov 24 04:34 .. drwxr-xr-x 2 root root 100 Nov 24 04:34 by-id drwxr-xr-x 2 root root 100 Nov 24 04:34 by-path crw-rw---- 1 root input 13, 64 Nov 24 04:34 event0 crw-rw---- 1 root input 13, 65 Nov 24 04:34 event1 crw-rw---- 1 root input 13, 63 Nov 24 04:34 mice crw-rw---- 1 root input 13, 32 Nov 24 04:34 mouse0 pi@retropie:~ $ evtest No device specified, trying to scan all of /dev/input/event* Not running as root, no devices may be available. Available devices: /dev/input/event0: MOSART Semi. Rapoo 2.4G Wireless Touch Desktop /dev/input/event1: MOSART Semi. Rapoo 2.4G Wireless Touch Desktop Select the device event number [0-1]:
mouse is
event1
now
interestingly, the mouse works in the terminal via SSH even when the emulator is running -
@sexbeer finally the issue was identified in RA's side.
@grant2258 sent a pull request to RetroArch to fix this issue here: https://github.com/libretro/RetroArch/pull/7730
Once merged your problem should be fixed, keep an eye on that PR @sexbeer ;) -
@sexbeer if you feel like trying the patch from @grant2258 , you can do the following while the PRs are in the process of being reviewed/merged:
cd $HOME/RetroPie-Setup # go to the RetroPie Setup directory sudo ./retropie_packages.sh retroarch clean # clean the build sudo ./retropie_packages.sh retroarch sources # download the sources sudo patch -p1 -d tmp/build/retroarch < <(wget -qO- https://github.com/libretro/RetroArch/pull/7730.diff) # patch retroarch with PR #7730 sudo patch -p1 -d tmp/build/retroarch < <(wget -qO- https://github.com/libretro/RetroArch/pull/7759.diff) # patch retroarch with PR #7759 sudo ./retropie_packages.sh retroarch build # build the patched retroarch sudo ./retropie_packages.sh retroarch install # install the patched retroarch sudo ./retropie_packages.sh retroarch clean # to leave all clean again
Afterwards, just launch your game and test if the mouse is now working for you. In particular check that you are not getting this error anymore:
[ERROR] [udev] Failed to open device: /dev/input/event1 (Success).
Your feedback is highly appreciated! Thanks!
-
@hhromic sudo: ./retropie_packages.sh: command not found
-
type
cd /home/pi/RetroPie-Setup/
then follow the instructions
-
@grant2258 goddammit it works! Hallelujah!
-
no errors detected
[INFO] [udev]: Keyboard #0 (/dev/input/event1). [INFO] [udev]: Mouse #0 (/dev/input/event2). [INFO] [udev]: Mouse #1 (/dev/input/mouse0). [INFO] [udev]: Plugged pad: Microsoft X-Box 360 pad (1118:654) on port #0. [INFO] [udev]: Pad #0 (/dev/input/event0) supports force feedback. [INFO] [udev]: Pad #0 (/dev/input/event0) supports 16 force feedback effects.
-
@sexbeer yes indeed I forgot to mention that you need to go to the RetroPie directory first! apologies! luckily @grant2258 gave you the hint.
and I'm glad your mouse is now working! more points for this patch! thanks for testing. I guess now you can go enjoy some Zapper shooting ;)
-
nice to see hear it working good fot you thanks for posting the results appreciated :)
-
@grant2258 @hhromic Thanks guys, I'm really happy now :) I hope that this fix will be included in one of the following updates
-
@hhromic good news is the patch is in retroarch now however they asked me to change something which broke it. So i applied another patch to sort it. in your instructions can you add this after the first patch.
sudo patch -p1 -d tmp/build/retroarch < <(wget -qO- https://patch-diff.githubusercontent.com/raw/libretro/RetroArch/pull/7759.diff) # patch retroarch with the PR1
-
@grant2258 great news indeed! I updated my original comment now. I used the same URL formatting as the other PR for consistency.
I'm thinking on opening a new topic to direct users to your patch and these instructions, so we can collect more positive feedback and easily direct users having the same issue.
-
@hhromic sounds like a plan something will need to be in place until retropie decides what to do.
-
@hhromic said in mouse as a Zapper lr-fceumm RPi 3 b+:
sudo ./retropie_packages.sh retroarch clean # to leave all clean again
Hi,
Thank you very much for this, I can now at least use my Wireless KB/Mouse with games such as Missle Command, but I cannot seem to get retroarch to use a different mouse #index and it doesn't matter what I chose in retroarch, once I launch the game it's only the KB's Mouse that works.
Many Thanks,
Paul
*** Update, it works I just rebooted without the Wireless KB Controller in place and it all just worked ***
-
Hello
I have the same issue with the mouse.
I download the last image of retropie and I have the issue. Do you know if the fix is inserted in the new retropie image.
When I go to the mame menu in lr-mame2003 I dont have the option " MOUSE X ANALOG" like in the windows version of mame (I use to have an arcade with mame in windows xp)And I dont know where to put mouse-enabled at true. Like we use to do in the mame.ini file.
So I tried the command line listed upper in this post, and on the line :
sudo patch -p1 -d tmp/build/retroarch < <(wget -qO- https://github.com/libretro/RetroArch/pull/7730.diff)
I got and error
" Hunk #1 failed at 505 "
Any idea.
Help need please. -
Can you post your mame2003 log so we can see what it finds
-
@grant2258 Hello
I chekc on the system and i'm unable to find a mame2003.log
Do you know where it should be.
Also I check the runcommand.log, and tehre is only two lines who said that I launch centipede.
In the mame menu, I cna assign a button to a mouse click. But it cannot register my mouse moving.Francis
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.