Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08213 Core Minor Always Feb 18, 2022, 07:51 Feb 19, 2022, 08:33
Tester CYBERYOGI -CO-Windler View Status Public Platform MAME (Official Binary)
Assigned To Resolution No change required OS Windows 10/11 (64-bit)
Status [?] Closed Driver
Version 0.240 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08213: replugged USB mouse not recognized (by games)
Description In Win10 (an older version) when the USB mouse is unplugged during game, after replugging it is not recognized anymore until MAME is completely terminated. This can get annoying when the player in mid of a game tries to plugin a different mouse or trackball that is better suited for gaming, or accidentally unplugged it.

Strange is that after exiting the game, the main menu will still see the mouse , but any started games (same or others) will not see the mouse until MAME is fully exitted.

I discovered this bug by a bad mouse cable (broken USB data lines) that unplugged and replugged the mouse randomly during strong movement in the "Marble Madness" arcade version.
Steps To Reproduce Unplug and replug an USB mouse during a game. No games will see the mouse anymore as a controller (although GUI works fine) until you terminate MAME.
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.19800
Fujix
Administrator
Feb 19, 2022, 06:39
I think this is not a bug.
User avatar
No.19803
cuavas
Administrator
Feb 19, 2022, 08:33
edited on: Feb 19, 2022, 18:23
The current Windows RawInput/DirectInput/RawInput input modules don't lend themselves to detecting input devices being added. If you really need to be able to re-plug your mouse and/or keyboard while running MAME, use "-mouseprovider win32" and/or "-keyboardprovider win32".

Closing as this is expected behaviour for the current implementation.