Emulator Issues #13191open
Light gun devices that are exposed as mice
Ghost Squad (example, all games that are more than 1 player)
ID? (right click the game in the game list, Properties, Info tab)
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
What's the problem? Describe what went wrong.
Dolphin uses the windows mouse pointer, so multiple lightgun devices (or multiple mice devices), which are exposed as mice in Windows, every device controls all wiimotes when playing multiplayer game.
Other emulators have solved this problem by allowing users to use RAW input API, which can send inputs per VID/PID HID device instead of dinput, which lumps all HID devices in the same input.
What steps will reproduce the problem?
Trying to play any multiplayer game with multiple mice devices.
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
[Version number here]
Is the issue present in the latest stable version?
If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
[First broken version number here (if applicable)]
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
[Attach any fifologs if possible, write a description of fifologs and screenshots here to assist people unfamiliar with the game.]
What are your PC specifications? (CPU, GPU, Operating System, more)
i5-12600k, RTX 3070ti, Windows 10, 32 gb ram ddr4
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
Attached is a screenshot of Flycast emulator to show how each device is separate. Thank you very much for your time!
Updated by pokechu22 27 days ago
Does https://github.com/dolphin-emu/dolphin/pull/11252 help? (I'm guessing not since it targets evdev which I think is Linux-specific, but it is about light guns as well)
Updated by Prof_gLX 27 days ago
It's a different problem/solution, by using absolute mouse to point exactly where the gun is pointing. It would be a good "nice-to-have" but we've worked aroung it by using different input profiles with maths applied to the mouse inputs.
This is really a case of "every mouse device acts as a single device" instead of as separate. Same with multiple keyboards. I don't think dinput allows separation of mouse and keyboard per VID/PID, raw would allow it, which would allow 4 emulated wiimotes pointing at different places in the game, each with their own left click, right click, middle click, etc.