Setting up mouse controls for shooting games.
-
Hi,
Please forgive me, I'm a total novice to RetroPie and RetroArch, but not a novice to emulation.
I've got everything up and running, but I need help setting up games that used lightguns. Configuring these things on every other emulator I've used since the late 90's has been really straightforward, but I just can't get my head around this system yet.
Basically I've got some games such as Operation Wolf on Mame and a couple of games on the Nintendo Emulator that I would like to play using my mouse to aim and shoot.
I've looked at the guides here, but I'm just totally out of my depth with this at the moment. Could someone be kind enough to provide a straightforward guide please?
I'm running a Pi4 4GB
Retropie 4.6 Beta via RasbianA wireless keyboard and mouse. Does it need to be wired?
A Hori Wired Nintendo Switch controller which working fine for other games.Many thanks.
-
What emulators are you using to run Arcade/NES games ?
EDIT: In RetroArch, it's usually enough (given the core has support for mouse/lightgun controls) to set the Player 1/2 Mouse index.
-
Thanks for your reply. Unfortunately, I'm still none the wiser.
Like I said originally, I'm completely new to this, telling me to set a mouse index to 1/2 means nothing to me at the moment.
I know how to get to the RetroArch settings in the emulators but the number of settings has bamboozled me.
I've seen a mouse index setting, but changing it to 1 or 2 makes zero difference.
My mame is lr-mame 2003 and the Nes Emulator is lr-FCEUmm
I need help still. I don't understand how changing to mouse in a shooting game has to be so bloody hard.
Thanks
-
Additional information:
I looked at the guide here: https://retropie.org.uk/docs/Spinners,-Trackballs,-Lightguns,-and-other-Mouse-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 am I doing wrong?
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 CorporationCPU:
68000 12.000000 MHz
Z80 4.000000 MHz
Z80 4.000000 MHzSound:
1xYM2151 4.000000 MHz
2xADPCMScreen 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. -
You're running RetroPie from the desktop environment, which is not a supported configuration - as explained in https://retropie.org.uk/docs/Manual-Installation/.
I tested Mame2003 and FCeumm with the same game (Vs. Duck Hunt/Duck Hunt) and the only modification I had to do was in FCeumm, I had to change the option 'Zapper Mode' (see https://docs.libretro.com/library/fceumm/#core-options) from lightgun to mouse.
Op. Wolf seems not to work - the mouse moves, but it's constrained to a portion of the screen, so it might not be correctly emulating the light gun.
-
Okay, thanks.
I'll wait until the official version of Retropie for the Pi4 is released before I look into more lightgun games. They're less than 5% of my games anyway.
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.