Emulator Issues #13191


Light gun devices that are exposed as mice

Added by Prof_gLX 27 days ago. Updated 27 days ago.

% Done:


Operating system:
Issue type:
Relates to usability:
Relates to performance:
Relates to maintainability:
Regression start:
Fixed in:


Game Name?

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?

All versions

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 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:

[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!


flycast raw input.png (114 KB) flycast raw input.png Prof_gLX, 03/02/2023 07:49 PM
Actions #1

Updated by pokechu22 27 days ago

Does help? (I'm guessing not since it targets evdev which I think is Linux-specific, but it is about light guns as well)

Actions #2

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.


Also available in: Atom PDF