Skip to content

Commit

Permalink
Win32: fix controller hotplugging
Browse files Browse the repository at this point in the history
  • Loading branch information
OV2 committed Apr 2, 2015
1 parent 61f1358 commit 951a383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/wsnes9x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 951a383

Please sign in to comment.