Mayflash Wireless Sensor DolphinBar + Wii Remote not working (power issue)?
-
Pi Model: a020d3 (Raspberry Pi 3B+ revision 1.3, 1 GB RAM - Sony UK)
Power Supply used: 2.5A
RetroPie Version: 4.4.14 (commit 97b3da37)
USB Devices connected: Logitech K400 Keyboard + Touchpad, Insignia 4-Port USB 2.0 Travel Hub (NS-PCH5420-C), Mayflash W010 Wireless Sensor DolphinBar
Controller(s) used: 2 x Microntek USB Joysticks (6-axis) with 12 buttons, 2 x Logitech Gamepad F310, 1 x Wii Remote (for Light Gun)
Emulator: AdvMAME 1.4Hi,
I just bought the Mayflash wireless sensor dolphinbar to re-purpose my old Wii remote for some light gun fun with AdvMAME 1.4 however I am having no luck with my setup. Any gurus out there on this subject who can shed some light on what I am doing wrong? I had already searched the forum for anything about "Mayflash dolphinbar" and there was 6 pages of results about this topic but I can't either apprehend or understand much of it.
My current setup right now is working fine with AdvMAME 1.4 and all I wanted to do was add a Wii remote as a extra mouse controller (since my Logitech K400 keyboard already has a touchpad for the mouse function). I paired the Wii remote with the Mayflash dolphinbar, the mode was set to LED1 (keyboard + mouse) and when I configured the Wii remote inputs in Emulationstation it would disable all the binded keys on my Logitech K400 keyboard (this is normal I guess?).
I launched a rom in AdvMAME 1.4 and the crosshair stays centered on the screen and waving or moving the Wii remote around doesn't make it move however I can use the D-pad on the Wii remote to move the crosshair left, right, up and down.
So I don't know how to get this to work with my setup unless it's a power issue where there isn't enough power to all my connected USB devices or is it something to do with changing a few lines in advmame-1.4.rc to create different mouse indexes?
Thank you for reading!
EDIT (06-07-2019):
Okay I figured out what NOT to do in order to retain the key configuration on my Logitech K400 after installing the dolphinbar and Wii remote. Basically I only needed to set the dolphinbar to mode 2 (LED2) and pair it to my Wii remote. No need to run the "Configure Input" setting for the Wii remote in Emulationstation or else that will override my Logitech K400 keyboard bindings. Anyway, I can navigate within the menus with both my Logitech K400 keyboard and Wii remote but I still can't figure out how to tell AdvMAME 1.4 to assign only (or both if possible) the mouse pointer to my Wii remote and Logitech K400 touchpad. If both cannot be achieved then how can I tell AdvMAME 1.4 to only assign the mouse pointer to the Wii remote?EDIT #2 (06-08-2019):
So without changing anything else I launched either "Area51" or "Crypt Killer" in AdvMAME 1.4 and I find that the Wii remote is detected differently. The button mappings are not the same when I assign my Wii remote buttons from the TAB menu. The crosshair in Area51 would only move with the D-pad (on Wii remote) and/or the analog stick (on Nunchuk) however with Crypt Killer the crosshair would move around with the Wii remote.
I performed a hardware test at the command prompt to determine whether Linux is seeing both my Logitech K400 touchpad and/or Wii remote with this command:
cat /dev/input/mice
Then I was able to find out which one was my touchpad or Wii remote using this command:
cat /dev/input/mouse0
or
cat /dev/input/mouse1
I determined that mouse0 was my Logitech K400 touchpad and mouse1 was my Wii remote through the dolphinbar. So now I just need to know how to transfer this to AdvMAME 1.4 so that each light gun game will know that mouse1 will be always be my mouse pointer or crosshair.
Also the sound for both Area51 and Crypt Killer was mediocre which explains why other people would prefer running light gun games on a PC. Raspberry Pi 3B+ will run these games but the sound is choppy or it would sound like listening to a broken record.
-
@raspy
I think maybe what you are looking for is
sudo nano /opt/retropie/configs/mame-advmame/advmame.rc
device_mouse raw device_raw_mousedev[0] /dev/input/mouse0 device_raw_mousedev[1] /dev/input/mouse1 device_raw_mousedev[2] /dev/input/mouse2 device_raw_mousedev[3] /dev/input/mouse3 device_raw_mousetype[0] ps2 device_raw_mousetype[1] ps2 device_raw_mousetype[2] ps2 device_raw_mousetype[3] ps2
I think all of these settings can be set to auto, and mousetype pnp|ps2.
Though if the 2nd player mouse is working neither then ???There are some threads that will have info on this if you search for guncon, aimtrak, or mouse advmame/
-
Thank you! This fixed it. Player 2 is not set up yet as I am waiting for the second dolphinbar to arrive from Amazon which is tomorrow :)
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.