Project

General

Profile

Actions

Emulator Issues #13009

closed

WGInput device doesn't dissapear after unplugging controller

Added by Miksel12 about 2 years ago. Updated about 2 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
5.0-17161

Description

What's the problem? Describe what went wrong.

WGInput devices don't seem to be cleared correctly, when I plug in my DS4, it shows up after a refresh but after unplugging it stays in the list, even after a refresh. After I plug in a different controller it still only shows the previously unplugged controller. Only restarting Dolphin seems to fix it.

Another discovery I made is that WGInput and DInput controllers don't automatically show up, now requiring a refresh. SDL doesn't have this issue and correctly appears and dissapears in the list.

What steps will reproduce the problem?

Plug in a controller, notice that WG/DInput don't show up, refresh, they show up, unplug, they don't dissapear, refresh, DInput dissapears and WGInput stays.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

5.0-17153

Is the issue present in the latest stable version?

No

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.)

I only tested 5.0-16214, the first build with WGInput, WGInput and DInput work correctly in that build. I don't have time now for a bisect, will do that later.

What are your PC specifications? (CPU, GPU, Operating System, more)

W11
R5 3600X
GTX 1060
Dualshock 4


Files

SDL_Duplicate.jpg (17.1 KB) SDL_Duplicate.jpg Miksel12, 08/11/2022 07:11 PM
Actions #1

Updated by Anonymous about 2 years ago

seems to be caused by SDL

Actions #2

Updated by Miksel12 about 2 years ago

With the SDL update there is some improvement. WGInput no longer stick around after unplugging and refreshing but both DInput and WGInput still need a refresh to appear and dissapear. And SDL now registers my dualshock double, once as Playstation controller and once as generic controller.

Actions #3

Updated by Anonymous about 2 years ago

Actions #4

Updated by Miksel12 about 2 years ago

Yes! That fixes it. SDL, DInput and WGInput now correctly hotplug.

Actions #5

Updated by Billiard26 about 2 years ago

  • Status changed from New to Fixed
  • Fixed in set to 5.0-17161
Actions

Also available in: Atom PDF