From 45df508f8fa960c336cd805f3650c8718995ec09 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Sat, 1 Feb 2014 16:02:02 +0100 Subject: [PATCH] [Win] Query WinMM joysticks on devicechange event --- Source/OpenTK/Platform/Windows/WinRawInput.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/OpenTK/Platform/Windows/WinRawInput.cs b/Source/OpenTK/Platform/Windows/WinRawInput.cs index 08e57201..80c5b0c2 100644 --- a/Source/OpenTK/Platform/Windows/WinRawInput.cs +++ b/Source/OpenTK/Platform/Windows/WinRawInput.cs @@ -125,6 +125,7 @@ namespace OpenTK.Platform.Windows case WindowMessage.DEVICECHANGE: ((WinRawKeyboard)KeyboardDriver).RefreshDevices(); ((WinRawMouse)MouseDriver).RefreshDevices(); + ((WinMMJoystick)JoystickDriver).RefreshDevices(); break; } return base.WindowProcedure(handle, message, wParam, lParam);