libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.06k stars 1.81k forks source link

[Feature Request] Native support for Mayflash DolphinBar - Wiimote Emulation (Mode 4) #9732

Open HeyItsLollie opened 4 years ago

HeyItsLollie commented 4 years ago

For reference: Mayflash DolphinBar

TLDR: It'd be great to support the DolphinBar's Wiimote Emulation (Mode 4) through RetroArch itself, so that up to four Wiimotes can be used for lightgun games across all cores, without having to rely on multi-mouse input.

More than willing to put a bounty on this one to help push interest in investigating this feature.


The DolphinBar has been out since 2014, and is still currently recommended by the Dolphin team for users looking for simple Wiimote functionality — namely for its Wiimote Emulation (Mode 4 on the DolphinBar), giving it the ability to connect up to four Wiimotes directly to the Dolphin emulator via Bluetooth, complete with speaker data, IR and motion controls.

An important part of this is that Wiimote Emulation is achieved without a multi-mouse setup. The DolphinBar does offer keyboard-and-mouse emulation via Mode 1 and 2, but Mode 4 is different.

I've tried looking around for word on DolphinBar support in RetroArch. From what I can tell, the current state of support appears to be:

So, I think the most sensible way of supporting DolphinBar Mode 4 would be to implement it in RetroArch itself, for a couple reasons.

  1. Supporting DolphinBar directly in RetroArch benefits all cores with lightgun support. This would more or less provide an input layer to push onto other cores, without having to explicitly add DolphinBar support to the cores themselves. This could also feasibly open up support for other modern-day lightguns in the future. (see: Sinden Lightgun)
  2. RetroArch could have full control over how Wiimote X/Y IR coordinates are mapped. Frankly, unless you're using a single monitor on Windows (or happen to be using Linux), DolphinBar's mouse emulation leaves a lot to be desired — and DolphinBar only supports emulation of a single mouse in Mode 1/2. Utilizing Mode 4 in RetroArch could help help unify the experience with Wiimote controllers, and put more control in the users' hands. For example: A user may want to recalibrate their Wiimote using four-point calibration (point at each corner of the screen).
rcl0ng commented 4 years ago

I agree with this idea. If mode 4 were supported it could convert the lightgun into raw mouse input and the buttons to x input for games like NES and Turbo Graphic 16 games. Any lightgun games or games with 2 action buttons, really.

markwkidd commented 3 years ago

@HeyItsLollie are you still monitoring this issue? I'll contribute $10 to start a bounty if you're still interested in it as well.

markwkidd commented 3 years ago

There is this C language library: https://github.com/wiiuse/wiiuse (GPL 3)

HeyItsLollie commented 3 years ago

@HeyItsLollie are you still monitoring this issue? I'll contribute $10 to start a bounty if you're still interested in it as well.

I am still interested! I'm able to pitch a couple hundred towards it to get the bounty-ball rolling. (Also oops, I hadn't seen #6466 before, glad to see that other people have brought this up)

It's obviously been a couple years since I posted this, so I'm now wondering what the best path would be — whether that's via a library like Wiiuse as you linked, Dolphin's WiimoteReal, or something else. It's more important that any implementation supports native Wii peripherals like the Wii Sensor Bar and Wiimote, since (hopefully) that support would flow outwards to 3rd party peripherals too.

That said, getting this properly implemented would have some implications for how Retroarch handles mouse/pointer input, especially for calibration. It's a big ask. If Libretro has dedicated contributors for the controller side of things, it'd be great to hear some thoughts about what we're asking for here.

rcl0ng commented 3 years ago

I'd put a few dollars towards it. Has someone made a bounty? what's the link? https://docs.libretro.com/development/bounties/ https://www.bountysource.com/

Maybe you can muster up more support here- https://forums.launchbox-app.com/topic/34653-guide-cheap-arcade-light-guns-with-touchemote/page/13/ or on reddit. good luck.

rcl0ng commented 2 years ago

https://www.bountysource.com/issues/83873923-feature-request-native-support-for-mayflash-dolphinbar-wiimote-emulation-mode-4

stupacshakur commented 2 years ago

This would be an amazing feature. I just got the Mayflash Dolphin Bar and its support in Dolphin is superb. Playing lightgun games in mouse mode in Retroarch does leave a lot to be desired. It works, but calibration and multiplayer would be a dream come true. I put $15 on the bounty.

Tartifless commented 1 year ago

Hi, Is this feature request still open ? It would be an amazing addition for many cores (mame, fbneo, flycast, ps2, mednafen_psx (allvariants), fceumm, ...). Many core have lightgun support and wiimotes are the less expansive way to get to it.

Having to switch between mode 2 and mode 4 is a real pain in the a...

n33k33 commented 1 year ago

Been pulling my hair for a week trying to find solutions for using Wiimotes as Lightguns outside of Dolphin and would absolutely supporting this.

In the meantime in case it might help someone, so far I've only managed to use several Wiimotes at the same time in MAMEUI (not RA). It is for some reason the only program I've found that will detect Wiimote X / Y movements correctly. I do have to run Touchmote with motion set as X360 "Right Stick" for this tho.

I've read other people are able to play 2 players using 2 Dolphin Bars in Mode 2. I wrote to Mayflash asking them if pairing 2 Wiimotes in Mouse cursor mode would be possible at all via firmware update since programs to support several cursors do exist. Right now Mode 2 will only allow 1 Wiimote at a time.

illando commented 2 months ago

Bump for this request!! It would be a great addition also on the android version of RA where the dolphin bar works perfectly on Dolphin, but it’s not recognized in Mode2 on RA for lightgun emulation.

rcl0ng commented 2 months ago

This- https://geekonarium.de/en/lichtknarre-lightgun/ Got SuperModel, TeknoParrot, Mame and Flycast to work. RetroArch should work and it has a tutorial for Dolphin

illando commented 2 months ago

@rcl0ng Yes, but this is a windows only solution. This issue is about the possibility to have native support on RA, on the various platforms, like Dolphin has. I don’t understand why you should use that app with dolphin when the dolphin bar is totally supported on windows.