• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 70 71 72 73 74 ... 368 Next »

Auto rescan joypads when hardware is plugged in?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Auto rescan joypads when hardware is plugged in?
08-10-2017, 05:39 AM
#1
Dwedit Offline
Junior Member
**
Posts: 17
Threads: 6
Joined: Mar 2016
On Windows, top level windows receive the WM_DEVICECHANGE message with wParam = DBT_DEVICEARRIVAL to get notified that hardware has been plugged in.  From there, you can also find out what type of device was plugged in.
In QT, it's possible to handle native windows messages with QAbstractNativeEventFilter, so you can do this stuff even if you don't have a standard Win32 message loop.
Dolphin already has a rescan feature in the controller config dialog.

Put these together, and I'd get to connect my joypad after starting Dolphin and realizing it wasn't already connected.
Find
Reply
08-10-2017, 10:30 PM
#2
leolam Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,478
Threads: 5
Joined: Sep 2015
PRs welcome Wink

I did the ground work for hotplugging support one year ago, and also implemented it for evdev (on Linux). Someone implemented it for macOS. Windows support is missing because no one has worked on it.
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode