I have a dual shock 4 connected through the DS4Windows in my Windows 11 laptop.
It seems there is a problem with the current version of MAME as when the gamepad is connected MAME freezes or crashes when trying to play anything. When I disconnect the gamepad and close DS4Windows then I can run all MAME games normally without any freezes.
I looked on Google and this seems to be a bug on the current version of MAME but I could not find any solution to this. Can this be fixed or I have to wait for the next version of MAME for the gamepad to work?