From 951a383ae27e0ba3acac274989a5c2255a88cb2e Mon Sep 17 00:00:00 2001 From: OV2 Date: Thu, 2 Apr 2015 20:40:50 +0200 Subject: [PATCH] Win32: fix controller hotplugging --- win32/wsnes9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 8fe2fcc0..0640b8c1 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -2672,7 +2672,7 @@ LRESULT CALLBACK WinProc( break; #endif case WM_DEVICECHANGE: - if(wParam == DBT_DEVICEARRIVAL || wParam == DBT_DEVICEREMOVECOMPLETE) + if(wParam == DBT_DEVICEARRIVAL || wParam == DBT_DEVICEREMOVECOMPLETE || wParam == DBT_DEVNODES_CHANGED) S9xDetectJoypads(); break; }