[Solved] Mouse like Lightgun in lr-fceumm not work
-
Help please.
I've been trying for a while, before trying the Dolphin Bar, I want to try a conventional mouse.
My hardware is a Raspberry Pi 3B, with the latest update of Retropie installed (currently 4.5.3), powered from an ATX source.
I have an Ultimarc I-Pac2 connected to the Raspberry Pi 3B which is recognized as a keyboard and mouse.
I also have a keyboard and a conventional mouse connected. I have this mouse set up as "mouse index 2" in retroarch for "User 1 Binds" and it works well for many emulators and games that use mouse.
But when running Duck Hunt in lr-fceumm I can't emulate the lightgun using the mouse. I have configured:
Zapper mode Mouse
and
Show crosshair Enabled
I start a RetroArch emulator with the option --verbose to generate a detailed log.
Parameters: Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Duck Hunt (World).nes" --verbose --appendconfig /dev/shm/retroarch.cfg [INFO] RetroArch 1.7.6 (Git 9750719) [INFO] Redirecting save file to "/home/pi/RetroPie/roms/nes/Duck Hunt (World).srm". [INFO] Redirecting savestate to "/home/pi/RetroPie/roms/nes/Duck Hunt (World).state". [INFO] === Build ======================================= Capabilities: NEON VFPv3 VFPv4 Built: Nov 7 2019 [INFO] Version: 1.7.6 [INFO] Git: 9750719 [INFO] ================================================= [INFO] Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so" [INFO] [overrides] no core-specific overrides found at /home/pi/.config/retroarch/config/FCEUmm/FCEUmm.cfg. [INFO] [overrides] no content-dir-specific overrides found at /home/pi/.config/retroarch/config/FCEUmm/nes.cfg. [INFO] [overrides] no game-specific overrides found at /home/pi/.config/retroarch/config/FCEUmm/Duck Hunt (World).cfg. [INFO] Shaders: preset directory: /home/pi/.config/retroarch/shaders/presets [INFO] Shaders: no game-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/Duck Hunt (World).cgp. [INFO] Shaders: no game-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/Duck Hunt (World).glslp. [INFO] Shaders: no content-dir-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/nes.cgp. [INFO] Shaders: no content-dir-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/nes.glslp. [INFO] Shaders: no core-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/FCEUmm.cgp. [INFO] Shaders: no core-specific preset found at /home/pi/.config/retroarch/shaders/presets/FCEUmm/FCEUmm.glslp. [INFO] Environ SET_CONTROLLER_INFO. [INFO] Controller port: 1 [INFO] Auto (ID: 1) [INFO] Gamepad (ID: 513) [INFO] Zapper (ID: 258) [INFO] Controller port: 2 [INFO] Auto (ID: 1) [INFO] Gamepad (ID: 513) [INFO] Arkanoid (ID: 514) [INFO] Zapper (ID: 258) [INFO] Controller port: 3 [INFO] Auto (ID: 1) [INFO] Gamepad (ID: 513) [INFO] Controller port: 4 [INFO] Auto (ID: 1) [INFO] Gamepad (ID: 513) [INFO] Controller port: 5 [INFO] Auto (ID: 1) [INFO] Arkanoid (ID: 770) [INFO] (Bandai) Hyper Shot (ID: 1282) [INFO] Oeka Kids Tablet (ID: 1026) [INFO] 4-Player Adapter (ID: 769) [INFO] Remaps: remap directory: /opt/retropie/configs/nes/ [INFO] Remaps: no game-specific remap found at /opt/retropie/configs/nes/FCEUmm/Duck Hunt (World).rmp. [INFO] Remaps: no content-dir-specific remap found at /opt/retropie/configs/nes/FCEUmm/nes.rmp. [INFO] Remaps: no core-specific remap found at /opt/retropie/configs/nes/FCEUmm/FCEUmm.rmp. [INFO] Redirecting save file to "/home/pi/RetroPie/roms/nes/Duck Hunt (World).srm". [INFO] Redirecting savestate to "/home/pi/RetroPie/roms/nes/Duck Hunt (World).state". [INFO] Environ GET_LOG_INTERFACE. [INFO] Environ SET_SUPPORT_ACHIEVEMENTS: yes. [INFO] Environ SET_PIXEL_FORMAT: RGB565. [libretro INFO] Frontend supports RGB565 - will use that instead of XRGB1555. [INFO] Environ UNSUPPORTED (#65587). [INFO] Loading content file: /home/pi/RetroPie/roms/nes/Duck Hunt (World).nes. [INFO] Did not find a valid content patch. [INFO] CRC32: 0x4644085e . [INFO] Environ PERFORMANCE_LEVEL: 5. [INFO] Environ SET_INPUT_DESCRIPTORS: [INFO] RetroPad, User 1, Button "B (bottom)" => "B" [INFO] RetroPad, User 1, Button "Y (left)" => "Turbo B" [INFO] RetroPad, User 1, Button "Select" => "Select" [INFO] RetroPad, User 1, Button "Start" => "Start" [INFO] RetroPad, User 1, Button "D-Pad Up" => "D-Pad Up" [INFO] RetroPad, User 1, Button "D-Pad Down" => "D-Pad Down" [INFO] RetroPad, User 1, Button "D-Pad Left" => "D-Pad Left" [INFO] RetroPad, User 1, Button "D-Pad Right" => "D-Pad Right" [INFO] RetroPad, User 1, Button "A (right)" => "A" [INFO] RetroPad, User 1, Button "X (up)" => "Turbo A" [INFO] RetroPad, User 1, Button "L" => "(FDS) Disk Side Change" [INFO] RetroPad, User 1, Button "R" => "(FDS) Insert/Eject Disk" [INFO] RetroPad, User 1, Button "R2" => "(VSSystem) Insert Coin" [INFO] RetroPad, User 2, Button "B (bottom)" => "B" [INFO] RetroPad, User 2, Button "Y (left)" => "Turbo B" [INFO] RetroPad, User 2, Button "Select" => "Select" [INFO] RetroPad, User 2, Button "Start" => "Start" [INFO] RetroPad, User 2, Button "D-Pad Up" => "D-Pad Up" [INFO] RetroPad, User 2, Button "D-Pad Down" => "D-Pad Down" [INFO] RetroPad, User 2, Button "D-Pad Left" => "D-Pad Left" [INFO] RetroPad, User 2, Button "D-Pad Right" => "D-Pad Right" [INFO] RetroPad, User 2, Button "A (right)" => "A" [INFO] RetroPad, User 2, Button "X (up)" => "Turbo A" [INFO] RetroPad, User 3, Button "B (bottom)" => "B" [INFO] RetroPad, User 3, Button "Y (left)" => "Turbo B" [INFO] RetroPad, User 3, Button "Select" => "Select" [INFO] RetroPad, User 3, Button "Start" => "Start" [INFO] RetroPad, User 3, Button "D-Pad Up" => "D-Pad Up" [INFO] RetroPad, User 3, Button "D-Pad Down" => "D-Pad Down" [INFO] RetroPad, User 3, Button "D-Pad Left" => "D-Pad Left" [INFO] RetroPad, User 3, Button "D-Pad Right" => "D-Pad Right" [INFO] RetroPad, User 3, Button "A (right)" => "A" [INFO] RetroPad, User 3, Button "X (up)" => "Turbo A" [INFO] RetroPad, User 4, Button "B (bottom)" => "B" [INFO] RetroPad, User 4, Button "Y (left)" => "Turbo B" [INFO] RetroPad, User 4, Button "Select" => "Select" [INFO] RetroPad, User 4, Button "Start" => "Start" [INFO] RetroPad, User 4, Button "D-Pad Up" => "D-Pad Up" [INFO] RetroPad, User 4, Button "D-Pad Down" => "D-Pad Down" [INFO] RetroPad, User 4, Button "D-Pad Left" => "D-Pad Left" [INFO] RetroPad, User 4, Button "D-Pad Right" => "D-Pad Right" [INFO] RetroPad, User 4, Button "A (right)" => "A" [INFO] RetroPad, User 4, Button "X (up)" => "Turbo A" [INFO] Environ SYSTEM_DIRECTORY: "/home/pi/RetroPie/BIOS". [libretro INFO] Loading /home/pi/RetroPie/roms/nes/Duck Hunt (World).nes... [libretro INFO] ROM CRC32: 0x24598791 [libretro INFO] ROM MD5: 0xfa382374eb4a93a719064ca6c5a4e78c [libretro INFO] PRG ROM: 1 x 16KiB [libretro INFO] CHR ROM: 1 x 8KiB [libretro INFO] Mapper #: 0 [libretro INFO] Mapper name: NROM [libretro INFO] Mirroring: Vertical [libretro INFO] Battery-backed: No [libretro INFO] Trained: No [INFO] Environ UNSUPPORTED (#52). [INFO] Environ SET_VARIABLES. [INFO] Environ GET_VARIABLE fceumm_ramstate: [INFO] fill $ff [INFO] Environ GET_VARIABLE fceumm_palette: [INFO] sony-cxa2025as-us [INFO] Environ GET_VARIABLE fceumm_up_down_allowed: [INFO] disabled [INFO] Environ GET_VARIABLE fceumm_nospritelimit: [INFO] disabled [INFO] Environ GET_VARIABLE fceumm_overclocking: [INFO] disabled [INFO] Environ GET_VARIABLE fceumm_zapper_mode: [INFO] mouse [INFO] Environ GET_VARIABLE fceumm_show_crosshair: [INFO] enabled [INFO] Environ GET_VARIABLE fceumm_overscan_h: [INFO] enabled [INFO] Environ GET_VARIABLE fceumm_overscan_v: [INFO] enabled [INFO] Environ GET_VARIABLE fceumm_turbo_enable: [INFO] None [INFO] Environ GET_VARIABLE fceumm_turbo_delay: [INFO] 3 [INFO] Environ GET_VARIABLE fceumm_region: [INFO] Auto [INFO] Environ GET_VARIABLE fceumm_aspect: [INFO] 4:3 [INFO] Environ GET_VARIABLE fceumm_sndquality: [INFO] Low [INFO] Environ GET_VARIABLE fceumm_sndvolume: [INFO] 7 [INFO] Environ SET_GEOMETRY. [INFO] SET_GEOMETRY: 240x224, aspect: 1.339. [INFO] Environ GET_VARIABLE fceumm_swapduty: [INFO] disabled [INFO] Environ SET_MEMORY_MAPS. [INFO] ndx flags ptr offset start select disconn len addrspace [INFO] 001 M1A1bc 0x711c9bac 00000000 00000000 00007C00 00000000 00000400 [INFO] 002 M1A1bc 0x711c9fac 00000000 00000400 00007C00 00000000 00000400 [INFO] 003 M1A1bc 0x7681e8 00000000 00006000 00007C00 00000000 00000400 [INFO] 004 M1A1bc 0x7685e8 00000000 00006400 00007C00 00000000 00000400 [INFO] 005 M1A1bc 0x7689e8 00000000 00006800 00007C00 00000000 00000400 [INFO] 006 M1A1bc 0x768de8 00000000 00006C00 00007C00 00000000 00000400 [INFO] 007 M1A1bc 0x7691e8 00000000 00007000 00007C00 00000000 00000400 [INFO] 008 M1A1bc 0x7695e8 00000000 00007400 00007C00 00000000 00000400 [INFO] 009 M1A1bc 0x7699e8 00000000 00007800 00007C00 00000000 00000400 [INFO] 010 M1A1bc 0x769de8 00000000 00007C00 00007C00 00000000 00000400 [INFO] Skipping SRAM load.. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 47920.27 Hz. [INFO] [Video]: Video @ 900x672 [INFO] [Video]: Starting threaded video driver ... [INFO] [EGL] Falling back to eglGetDisplay [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0x1. [INFO] [GL]: Found GL context: videocore [INFO] [GL]: Detecting screen resolution 1600x1200. [INFO] [EGL]: eglSwapInterval(1) [INFO] [GL]: Vendor: Broadcom, Renderer: VideoCore IV HW. [INFO] [GL]: Version: OpenGL ES 2.0. [INFO] Querying EGL extension: KHR_image => exists [WARN] [GL]: GLES implementation does not have BGRA8888 extension. 32-bit path will require conversion. [INFO] [GL]: Using resolution 1600x1200 [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [INFO] Found #pragma parameter Screen curvature - horizontal (CURVATURE_X) 0.100000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Screen curvature - vertical (CURVATURE_Y) 0.150000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Mask brightness (MASK_BRIGHTNESS) 0.700000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Scanline weight (SCANLINE_WEIGHT) 6.000000 0.000000 15.000000 0.100000 in pass 0 [INFO] Found #pragma parameter Scanline gap brightness (SCANLINE_GAP_BRIGHTNESS) 0.120000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Bloom factor (BLOOM_FACTOR) 1.500000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Input gamma (INPUT_GAMMA) 2.400000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Output gamma (OUTPUT_GAMMA) 2.200000 0.000000 5.000000 0.010000 in pass 0 [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: Compiled [INFO] [GLSL]: Linking GLSL program. [INFO] Resetting shader to defaults ... [INFO] [GL]: Using 4 textures. [INFO] [GL]: Loaded 1 program(s). [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver. [INFO] [udev]: Keyboard #0 (/dev/input/event0). [INFO] [udev]: Keyboard #1 (/dev/input/event3). [INFO] [udev]: Mouse #0 (/dev/input/event1). [INFO] [udev]: Mouse #1 (/dev/input/mouse0). [INFO] [udev]: Mouse #2 (/dev/input/event5). [INFO] [udev]: Mouse #3 (/dev/input/mouse1). [INFO] [Joypad]: Found joypad driver: "udev". [WARN] [udev]: Full-screen pointer won't be available. [INFO] [Video]: Found display server: null [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/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: 384 frames [INFO] ALSA: Buffer size: 1536 frames [INFO] Found #pragma parameter Screen curvature - horizontal (CURVATURE_X) 0.100000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Screen curvature - vertical (CURVATURE_Y) 0.150000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Mask brightness (MASK_BRIGHTNESS) 0.700000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Scanline weight (SCANLINE_WEIGHT) 6.000000 0.000000 15.000000 0.100000 in pass 0 [INFO] Found #pragma parameter Scanline gap brightness (SCANLINE_GAP_BRIGHTNESS) 0.120000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Bloom factor (BLOOM_FACTOR) 1.500000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Input gamma (INPUT_GAMMA) 2.400000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Output gamma (OUTPUT_GAMMA) 2.200000 0.000000 5.000000 0.010000 in pass 0 [INFO] [LED]: LED driver = 'null' 0x2336bc [INFO] [MIDI]: Initializing ... [INFO] [MIDI]: Input disabled. [INFO] [MIDI]: Output disabled. [INFO] [MIDI]: Initialized "null" driver. [libretro INFO] Player 1: Gamepad [libretro INFO] Player 2: Zapper [libretro INFO] Player 3: None Connected [libretro INFO] Player 4: None Connected [libretro INFO] Famicom Expansion: None Connected [INFO] Found #pragma parameter Screen curvature - horizontal (CURVATURE_X) 0.100000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Screen curvature - vertical (CURVATURE_Y) 0.150000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Mask brightness (MASK_BRIGHTNESS) 0.700000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Scanline weight (SCANLINE_WEIGHT) 6.000000 0.000000 15.000000 0.100000 in pass 0 [INFO] Found #pragma parameter Scanline gap brightness (SCANLINE_GAP_BRIGHTNESS) 0.120000 0.000000 1.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Bloom factor (BLOOM_FACTOR) 1.500000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Input gamma (INPUT_GAMMA) 2.400000 0.000000 5.000000 0.010000 in pass 0 [INFO] Found #pragma parameter Output gamma (OUTPUT_GAMMA) 2.200000 0.000000 5.000000 0.010000 in pass 0 [INFO] Loading history file: [/opt/retropie/configs/all/content_history.lpl]. [INFO] Loading history file: [/opt/retropie/configs/all/content_favorites.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] Written to playlist file: /opt/retropie/configs/all/content_history.lpl
Can anyone help me?
-
@Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:
[INFO] [udev]: Mouse #0 (/dev/input/event1).
[INFO] [udev]: Mouse #1 (/dev/input/mouse0).
[INFO] [udev]: Mouse #2 (/dev/input/event5).
[INFO] [udev]: Mouse #3 (/dev/input/mouse1).This should about 4 mice devices - try changing the index to 3 instead of 2 and see if it works that way. Also, you can force that 'Controls -> User 2 Device type' to be 'Zapper' instead of being auto-detected.
-
Similar to the last answer, you said you have bound the mouse to player 1 but you need to bind it to player 2. Try all the different indexes. If that doesn't fix it you need to try removing some devices to make it easier to understand what is going on.
-
Yes thanks.
It worked, in the file retroarch.cfg I had the configuration of the mouse like this:
input_player1_mouse_index = "2" input_player2_mouse_index = "0"
I have added these two lines to the retroarch.cfg file of the nes system:
input_player1_mouse_index = "0" input_player2_mouse_index = "2"
To modify the assignment of the mouse only for this system since in the others it worked well for me.
Another question, if you don't mind, why does it detect four mice, if I only have two connected?
[INFO] [udev]: Mouse #0 (/dev/input/event1). [INFO] [udev]: Mouse #1 (/dev/input/mouse0). [INFO] [udev]: Mouse #2 (/dev/input/event5). [INFO] [udev]: Mouse #3 (/dev/input/mouse1).
Thanks to both of you.
-
@Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:
To modify the assignment of the mouse only for this system since in the others it worked well for me.
That may be system specific since the Zapper used in the P2 port on the NES/Famicom, hence it applies what @MrLightgun said - the P2 mouse index is what matters.
Another question, if you don't mind, why does it detect four mice, if I only have two connected?
Can't say why without a listing of connected device, can you run
cat /proc/bus/input/devices
and post the output ? -
@mitu said in Mouse like Lightgun in lr-fceumm not work:
cat /proc/bus/input/devices
Yes of course
I: Bus=0003 Vendor=d209 Product=0420 Version=0111 N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2" P: Phys=usb-3f980000.usb-1.2/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:D209:0 420.0001/input/input0 U: Uniq=8 H: Handlers=sysrq kbd leds event0 B: PROP=0 B: EV=120013 B: KEY=e080ffdf 1cfffff ffffffff fffffffe B: MSC=10 B: LED=1f I: Bus=0003 Vendor=d209 Product=0420 Version=0111 N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2" P: Phys=usb-3f980000.usb-1.2/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:D209:0 420.0002/input/input1 U: Uniq=8 H: Handlers=mouse0 event1 B: PROP=0 B: EV=17 B: KEY=70000 0 0 0 0 0 0 0 0 B: REL=3 B: MSC=10 I: Bus=0003 Vendor=d209 Product=0420 Version=0111 N: Name="Ultimarc IPAC 2 Ultimarc IPAC 2" P: Phys=usb-3f980000.usb-1.2/input2 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.2/0003:D209:0 420.0003/input/input2 U: Uniq=8 H: Handlers=kbd leds event2 B: PROP=0 B: EV=20013 B: KEY=ffffffff 80000000 0 7a c000 1e0000 0 0 0 B: MSC=10 B: LED=ff00 I: Bus=0003 Vendor=04d9 Product=1702 Version=0110 N: Name=" USB Keyboard" P: Phys=usb-3f980000.usb-1.3/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1 702.0004/input/input3 U: Uniq= H: Handlers=sysrq kbd leds event3 B: PROP=0 B: EV=120013 B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe B: MSC=10 B: LED=7 I: Bus=0003 Vendor=04d9 Product=1702 Version=0110 N: Name=" USB Keyboard" P: Phys=usb-3f980000.usb-1.3/input1 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1 702.0005/input/input4 U: Uniq= H: Handlers=kbd event4 B: PROP=0 B: EV=13 B: KEY=10000 2000000 39fa d941d001 1e0000 0 0 0 B: MSC=10 I: Bus=0003 Vendor=1bcf Product=0005 Version=0110 N: Name="USB Optical Mouse" P: Phys=usb-3f980000.usb-1.5/input0 S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:1BCF:0 005.0006/input/input5 U: Uniq= H: Handlers=mouse1 event5 B: PROP=0 B: EV=17 B: KEY=1f0000 0 0 0 0 0 0 0 0 B: REL=143 B: MSC=10
-
It looks like RetroArch is counting twice each mouse - both as
/dev/input/mouseX
and as/dev/input/eventY
. -
@mitu
Why?Now that I have managed to operate the mouse as a lightgun I want to connect a dolphin bar, which would add another keyboard and a mouse.
It is a problem?
-
@mitu
Hello.I read this in libretro forums:
Determining mice index numbers
Make sure that your input driver is set to one with multi-mouse support. If you change this setting, quit RetroArch and restart.
Start RetroArch from the commandline with the option --verbose so that you can see status messages. If thatโs not practical, folks can use trial and error to find the indexes.
udev example:
[INFO] [udev]: Keyboard #0 (/dev/input/event3). [INFO] [udev]: Mouse #0 (/dev/input/event4). [INFO] [udev]: Mouse #1 (/dev/input/mouse0). [INFO] [udev]: Mouse #2 (/dev/input/event5).
Interpretation
Please disregard any devices listed for the legacy interfaces /dev/input/mouse* and /dev/input/js*. Look instead for the /dev/input/event* indexes. In this example, there are two lightgun devices attached, along with a keyboard-style arcade control panel. To use both lightguns, the correct mouse indexes to use would be 0 and 2.
And in the retropie wiki there is similar information, I think the configuration of my mice is correct.
I'm right?
Thanks
-
@Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:
And in the retropie wiki there is similar information, I think the configuration of my mice is correct.
I'm right?Looks like it.
-
Hi. I have connected a dolphin bar and it works fine.
I don't know how to add the [Solved] tag to the thread
Thanks to both of you
-
@Cesarpuig said in Mouse like Lightgun in lr-fceumm not work:
I don't know how to add the [Solved] tag to the thread
Just click on the tree vertical dots at the right of your first post, choose "edit" and put a "[Solved]" before the title manually.
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.