Emulator Issues #6047

XInput Hotplug doesn't work

Added by sonicsnes about 6 years ago. Updated 26 days ago.

% Done:


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


What went wrong?
Launch game with an xinput device configured, but not connected (such as a powered off wireless 360 controller). Turn on the controller after the game has started.

What did you expect to happen?
Controller should be usable in game.

What actually happened?
Controller is unusable, but can be fixed by simply pressing "Refresh" in the GC input dialog.

What version of Dolphin were you using?
3.5-367 64-bit

What Operating System were you using and what are your hardware
Windows 7 64-bit

Related issues

Has duplicate Emulator - Emulator Issues #6313: Feature request: detect gamepad changes Duplicate

Has duplicate Emulator - Emulator Issues #9079: Controllers only work when they're plugged before the emulator startsDuplicate

Blocks Emulator - Emulator Issues #6997: Support HotplugFixed


#1 Updated by sonicsnes about 6 years ago

Possible patch:

It may be a little bit unsophisticated, but it certainly gets the job done. For people who want drop in / out support, I don't see why it needs to be any more complicated than that.

#3 Updated by rachelbryk about 6 years ago

That's a really silly hack.

#4 Updated by sonicsnes about 6 years ago

rachelbryk I completely agree. However, it works for me, and perhaps it may work for someone else. Whether or not it winds up in a build is up to you :)

#5 Updated by skidau about 6 years ago

  • Issue type set to Feature request

This is more of an enhancement request. Although possible, most applications do not support hot-plugging of game controllers.

#6 Updated by thraseapeatus about 6 years ago

Most PC Games that utilize Xinput do support Hot-Plugging, Plug the 360 Controller in,
and it Auto-detects.

The Gamecube as 4 Controller Ports and the 360 Controller as 4 Quadrants, so maybe they can be Synced Together

So if 360 Controller 1 runs out of power and turns off, The Gamecube Port 1 gets unplugged , and plugging in Second 360 Controller in-game , Port-2 becomes "Standard Controller".

And Since the Gamecube Controller and 360 Controller have near-identical Layout, A Default Profile could be created.

The Mice-Input on the 360 Controller could also be used for the Gamecube/Mice.

#7 Updated by shinra35888 almost 6 years ago

I agree with this request. I was just about to post this same issue just now until I saw that it was already made. PCSX2 does this by the way (with the pokopom input plugin. Also with NullDC and EPSXE with the same plugin. This is also needed for Metal Gear Twin Snakes for gamecube to fight psycho mantis and to not have the game be ruined if someone accidentally knocks the controller out of the usb slot.

#8 Updated by skidau almost 6 years ago

issue 6313 has been merged into this issue.

#9 Updated by shinra35888 almost 6 years ago

I just got dolphin-master-3.5-1504-x64 and it seems like a bit of this functionality exists now. A few notes:

-During game, unplugging and replugging works (xinput controller)

-Starting dolphin, unplugging and replugging, and then starting the game works.

-If I start dolphin and then unplug the controller and then start the game and lastly plugging the controller back in, the first time dolphin will crash but every time after that, the controller won't work anymore.

-Starting the emulator without the controller being plugged in, starting a game, and then plugging it in afterward doesn't work.

-Starting the emulator without the controller being plugged in and then plugging it in afterward before starting a game works.

In the link to issue 6313 , snes9x also has the controller to be added after the emulator is started or before (anytime) just like the real console. This is for game preservation purposes and it is very convenient. Only a small few of the top emulators lack this feature nowadays. If I remember correctly, the only console that didn't have this feature was the N64.

Edited for correction.

#10 Updated by rachelbryk almost 6 years ago

It's always been that way...

#11 Updated by shinra35888 almost 6 years ago

only with xinput i guess. i use to play with dinput but now i'm with xinput. the snes9x link does it with both.

#12 Updated by scientificraver almost 6 years ago

Using snes9x or pcsx-reloaded, the xinput controller does not need to be connected before starting the emulator which would be a really nice to have feature for Dolphin.

#13 Updated by MayImilae over 5 years ago

  • Category set to controls

#14 Updated by instrospark over 5 years ago

I think this relates to the same problem I am having.
I have built an arcade console with multiple options for game controls.
An Xbox 360 wireless controller, an x-arcade tank stick and a Logitech g27 steering wheel.
I have them all mapped for wii and gamecube games in a single profile so I can go between racing games (steering wheel) to normal controlled games using the Xbox controller or the tank stick without having to change profiles all the time (I launch through a front end), however the wheel and tank stick do not work unless I switch on the Xbox 360 wireless controller prior to launching Dolphin.
It would be great if I did not have to switch that on for the other controllers / wheel to work.
I'm using Windows 7 x64, i7-3770k, Asus GTX 660 Ti, 16gb Ram, dolphin 3.5-1747

#15 Updated by skidau over 3 years ago

  • Has duplicate Emulator Issues #9079: Controllers only work when they're plugged before the emulator starts added

#16 Updated by JosJuice almost 3 years ago

  • % Done changed from 100 to 0

#17 Updated by leoetlino over 1 year ago

#18 Updated by leoetlino about 1 year ago

  • Status changed from New to Fix pending
  • Operating system Windows added
  • Operating system deleted (N/A)

#19 Updated by Billiard26 5 months ago

  • Status changed from Fix pending to Duplicate

issue 6997 is a generic "Hotplug" feature request.

#20 Updated by JosJuice 5 months ago

  • Status changed from Duplicate to Fix pending

I think it's useful to keep this issue since it's more specific.

#21 Updated by Billiard26 4 months ago

  • Related to Emulator Issues #11323: Some games (e.g. Mario Kart Wii) are not properly informed about controller removal added

#22 Updated by Billiard26 26 days ago

  • Fixed in set to 5.0-9869
  • Status changed from Fix pending to Fixed

#23 Updated by Billiard26 8 days ago

  • Related to deleted (Emulator Issues #11323: Some games (e.g. Mario Kart Wii) are not properly informed about controller removal)

Also available in: Atom PDF