Need help with mouse support in Retropie

Discuss and discover all the great games of yesteryear!

Moderators: mknott, NickThorpe, lcarlson, Darran@Retro Gamer, MMohammed

Post Reply
User avatar
MattyC64c
Posts: 1159
Joined: Sat Mar 17, 2007 8:21 am

Need help with mouse support in Retropie

Post by MattyC64c » Sun May 31, 2020 3:43 pm

I've got a Raspberry Pi4 - 4GB model - and I've got the beta version of RetroPie installed. I've got most games to work fine with controllers, but I can't get my head around getting games to work with a mouse for shooting games like Operation Wolf on Mame or games like Wild Gunman on the NES emulator

I looked at the guide here: https://retropie.org.uk/docs/Spinners,- ... e-Devices/

I ran the command cat /dev/input/mice and my mouse was producing characters on the screen as it should.

When I typed cat /dev/input/mouse0 my mouse still produced characters so it must be assigned to 0

I set the RetroArch input driver is set to udev.

Ran Operation Wolf using lr-mame2003 using verbose to generate the log.

After this I'm stumped, I've been looking at this for nearly two hours and I'm no closer to getting the mouse to control the on-screen crosshair. What do I need to do to get the mouse to work?

Here is the log:

Parameters:
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/mame-libretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.zip" --verbose --appendconfig /dev/shm/retroarch.cfg
[INFO] RetroArch 1.7.9 (Git 4dcd7a0)
[INFO] Redirecting save file to "/home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.srm".
[INFO] Redirecting savestate to "/home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.state".
[INFO] === Build =======================================
[INFO] Capabilities: NEON VFPv3 VFPv4
[INFO] Built: Jan 9 2020
[INFO] Version: 1.7.9
[INFO] Git: 4dcd7a0
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so"
[INFO] [Overrides] no core-specific overrides found at /home/pi/.config/retroarch/config/MAME 2003 (0.78)/MAME 2003 (0.78).cfg.
[INFO] [Overrides] no content-dir-specific overrides found at /home/pi/.config/retroarch/config/MAME 2003 (0.78)/mame2003.cfg.
[INFO] [Overrides] no game-specific overrides found at /home/pi/.config/retroarch/config/MAME 2003 (0.78)/opwolf.cfg.
[INFO] [Remaps]: remap directory: /opt/retropie/configs/mame-libretro/
[INFO] Redirecting save file to "/home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.srm".
[INFO] Redirecting savestate to "/home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.state".
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: PERFORMANCE_LEVEL: 10.
[INFO] Content loading skipped. Implementation will load it on its own.
[libretro INFO] [MAME 2003] Content path: /home/pi/RetroPie/roms/mame-libretro/mame2003/opwolf.zip.
[libretro INFO] [MAME 2003] Content lookup name: opwolf.
[libretro INFO] [MAME 2003] Driver index counter: 1220. Matched game driver: opwolf.
[libretro INFO] [MAME 2003] Content identified as having a tilt feature.
[libretro INFO] [MAME 2003] Content identified as using Analog/Digital stick controls.
[libretro INFO] [MAME 2003] Content identified as using Analog/Digital stick controls.
[libretro INFO] [MAME 2003] Content identified as using 8-way joystick controls.
[libretro INFO] [MAME 2003] Content identified by controls.c as having joysticks on axis with respect to the cabinet.
[libretro INFO] [MAME 2003] Content identified as supporting 1 players with 1 distinct controls.
[libretro INFO] [MAME 2003] Content identified as supporting 2 button controls.
[libretro INFO] [MAME 2003] Content identified by controls.c as having mirrored multiplayer control labels.
[INFO] [Environ]: SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS".
[libretro INFO] [MAME 2003] content path: /home/pi/RetroPie/roms/mame-libretro/mame2003/
[libretro INFO] [MAME 2003] system path: /home/pi/RetroPie/BIOS
[libretro INFO] [MAME 2003] save path: /home/pi/RetroPie/roms/mame-libretro/mame2003/
[INFO] [Environ]: SET_VARIABLES.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.40
[libretro INFO] [MAME 2003] read_rom_data: All done
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.30
[libretro INFO] [MAME 2003] read_rom_data: All done
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.39
[libretro INFO] [MAME 2003] read_rom_data: All done
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.29
[libretro INFO] [MAME 2003] read_rom_data: All done
[libretro INFO] [MAME 2003] Opening ROM file: opwlf_s.10
[libretro INFO] [MAME 2003] Opening ROM file: opwlfb.09
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.13
[libretro INFO] [MAME 2003] Opening ROM file: opwlf.72
[libretro INFO] [MAME 2003] Opening ROM file: opwlf_s.21
[libretro INFO] [MAME 2003] Succesfully loaded ROMs.
[libretro ERROR] cpunum_get_localtime() called for invalid cpu num!
[INFO] [Environ]: SET_ROTATION: 0
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[libretro INFO] [MAME 2003]

CONTROLS:

GAMEINFO: Operation Wolf (US)
1987 Taito America Corporation

CPU:
68000 12.000000 MHz
Z80 4.000000 MHz
Z80 4.000000 MHz

Sound:
1xYM2151 4.000000 MHz
2xADPCM

Screen Resolution:
320 x 240 (H) 60.000000 Hz
[INFO] [RCHEEVOS]: ext_hash 0b88c7d8 ('zip')
[INFO] Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [RCHEEVOS]: Load task finished
[INFO] [Cheats]: Load game-specific cheatfile: /home/pi/.config/retroarch/cheats/MAME 2003 (0.78)/opwolf.cht
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Video @ 1920x1080
[INFO] [Video]: Starting threaded video driver ...
[INFO] [EGL] Found EGL client version >= 1.5, trying eglGetPlatformDisplay
[INFO] [EGL]: EGL version: 1.4
[INFO] [GL]: Found GL context: x-egl
[INFO] [GL]: Detecting screen resolution 1920x1080.
[INFO] [X/EGL]: Window manager is Openbox.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [X/EGL]: Using Xinerama on screen #0.
[INFO] [X/EGL]: X = 0, Y = 0, W = 1920, H = 1080.
[INFO] [EGL]: Current context: 0xabe559b8.
[INFO] [X/EGL]: Using windowed fullscreen.
[INFO] [EGL]: eglSwapInterval(1)
[INFO] [GL]: Vendor: Broadcom, Renderer: V3D 4.2.
[INFO] [GL]: Version: OpenGL ES 3.1 Mesa 19.3.2.
[INFO] [GL]: Using resolution 1920x1080
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shaders]: preset directory: /home/pi/.config/retroarch/shaders/presets
[INFO] [Shaders]: Specific shader preset found at /home/pi/.config/retroarch/shaders/presets/global.glslp.
[INFO] [Shaders]: global shader preset found.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] Found #pragma parameter Blur Amount X-Axis (BLURSCALEX) 0.300000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - Low (LOWLUMSCAN) 6.000000 0.000000 10.000000 0.500000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - High (HILUMSCAN) 8.000000 0.000000 50.000000 1.000000 in pass 0
[INFO] Found #pragma parameter Dark Pixel Brightness Boost (BRIGHTBOOST) 1.250000 0.500000 1.500000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask Effect Amount (MASK_DARK) 0.250000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask/Scanline Fade (MASK_FADE) 0.800000 0.000000 1.000000 0.050000 in pass 0
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [udev]: Plugged pad: HORI CO.,LTD. HORIPAD S (3853:193) on port #0.
[INFO] [udev]: Pad #0 (/dev/input/event0) supports 0 force feedback effects.
[INFO] [Autoconf]: 4 profiles found.
[INFO] [Autoconf]: selected configuration: /home/pi/.config/retroarch/autoconfig/HORI CO.,LTD. HORIPAD S.cfg
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Video]: Found display server: x11
[INFO] Found shader "/home/pi/.config/retroarch/shaders/2xsal-level2-crt.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/2xsal.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/2xScaleHQ.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_lanczos4.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_phosphor.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/barrel-distortion_snes.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/Brighter-with_Contrast.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/bsnes_gamma_ramp.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-curvature-vertical.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-curvature.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi-vertical.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/crt-pi.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy-screen-grid.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/gameboy2.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/gba-color.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x&lcd3x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x2.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x_lcd3x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2x_phosphor.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2xwaterpaint.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq2xwaterpaintscanline.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq4x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/hq4x_lcd3x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/nds-color.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/nds.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/nedi.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/palm-color.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/phosphor.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/psp-color.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/retroarch.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-2x-prescale.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-scanlines.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/sharp-bilinear-simple.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes2.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpaint.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpainthicontrast.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_hq2xwaterpaintscanline.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_lcd3x.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_phosphor.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_scanline.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/snes_waterpaint.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/stock.glsl"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/super-2xsai.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/super-eagle.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/vba-color.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/xbr-lv1-noblend.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_curve.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_curve_vertical.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_standard.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_crt_standard_vertical.glslp"
[INFO] Found shader "/home/pi/.config/retroarch/shaders/zfast_lcd_standard.glslp"
[INFO] [ALSA]: Using signed 16-bit format.
[INFO] [ALSA]: Period size: 768 frames
[INFO] [ALSA]: Buffer size: 3072 frames
[INFO] [ALSA]: Can pause: no.
[INFO] [Menu]: Found menu display driver: "gl".
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Menu]: Found menu display driver: "gl".
[CDROM] No sg devices found and sg kernel module is not loaded.
[INFO] Found #pragma parameter Blur Amount X-Axis (BLURSCALEX) 0.300000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - Low (LOWLUMSCAN) 6.000000 0.000000 10.000000 0.500000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - High (HILUMSCAN) 8.000000 0.000000 50.000000 1.000000 in pass 0
[INFO] Found #pragma parameter Dark Pixel Brightness Boost (BRIGHTBOOST) 1.250000 0.500000 1.500000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask Effect Amount (MASK_DARK) 0.250000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask/Scanline Fade (MASK_FADE) 0.800000 0.000000 1.000000 0.050000 in pass 0
[INFO] [LED]: LED driver = 'null' 0x25c2e4
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "alsa" driver.
[INFO] Found #pragma parameter Blur Amount X-Axis (BLURSCALEX) 0.300000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - Low (LOWLUMSCAN) 6.000000 0.000000 10.000000 0.500000 in pass 0
[INFO] Found #pragma parameter Scanline Darkness - High (HILUMSCAN) 8.000000 0.000000 50.000000 1.000000 in pass 0
[INFO] Found #pragma parameter Dark Pixel Brightness Boost (BRIGHTBOOST) 1.250000 0.500000 1.500000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask Effect Amount (MASK_DARK) 0.250000 0.000000 1.000000 0.050000 in pass 0
[INFO] Found #pragma parameter Mask/Scanline Fade (MASK_FADE) 0.800000 0.000000 1.000000 0.050000 in pass 0
[INFO] Loading history file: [/opt/retropie/configs/all/content_history.lpl].
[INFO] Loading history file: [/opt/retropie/configs/all/content_music_history.lpl].
[INFO] Loading history file: [/opt/retropie/configs/all/content_video_history.lpl].
[INFO] Loading history file: [/opt/retropie/configs/all/content_image_history.lpl].
[INFO] Loading favorites file: [/opt/retropie/configs/all/content_favorites.lpl].
[libretro INFO] [MAME 2003] Preparing emulated CPUs for execution.
[libretro INFO] [MAME 2003] opwolf hiscore memory map found in hiscore.dat!
[INFO] [Environ]: SET_GEOMETRY.
[libretro INFO] [MAME 2003] loading opwolf.hi hiscore memory file...
[INFO] [Cheats]: Save game-specific cheatfile: /home/pi/.config/retroarch/cheats/MAME 2003 (0.78)/opwolf.cht
[INFO] Content ran for a total of: 00 hours, 00 minutes, 09 seconds.
[INFO] Unloading game..
[libretro INFO] [MAME 2003] saving opwolf.hi hiscore memory file...
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] [Core Options]: Saved core options file to "/opt/retropie/configs/all/retroarch-core-options.cfg"
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [XINERAMA]: Saved monitor #0.
[INFO] Threaded video stats: Frames pushed: 569, Frames dropped: 13.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests