[Win] Query WinMM joysticks on devicechange event

This commit is contained in:
Stefanos A. 2014-02-01 16:02:02 +01:00
parent 2d110728aa
commit 45df508f8f

View file

@ -125,6 +125,7 @@ namespace OpenTK.Platform.Windows
case WindowMessage.DEVICECHANGE: case WindowMessage.DEVICECHANGE:
((WinRawKeyboard)KeyboardDriver).RefreshDevices(); ((WinRawKeyboard)KeyboardDriver).RefreshDevices();
((WinRawMouse)MouseDriver).RefreshDevices(); ((WinRawMouse)MouseDriver).RefreshDevices();
((WinMMJoystick)JoystickDriver).RefreshDevices();
break; break;
} }
return base.WindowProcedure(handle, message, wParam, lParam); return base.WindowProcedure(handle, message, wParam, lParam);