|
@@ -970,7 +970,6 @@ void WIN_CheckKeyboardAndMouseHotplug(SDL_VideoDevice *_this, bool initial_check
|
|
|
SDL_MouseID *old_mice = NULL;
|
|
|
int new_mouse_count = 0;
|
|
|
SDL_MouseID *new_mice = NULL;
|
|
|
- bool send_event = !initial_check;
|
|
|
|
|
|
// Check to see if anything has changed
|
|
|
static Uint64 s_last_device_change;
|
|
@@ -1048,7 +1047,7 @@ void WIN_CheckKeyboardAndMouseHotplug(SDL_VideoDevice *_this, bool initial_check
|
|
|
AddDeviceID(keyboardID, &new_keyboards, &new_keyboard_count);
|
|
|
if (!HasDeviceID(keyboardID, old_keyboards, old_keyboard_count)) {
|
|
|
name = GetDeviceName(raw_devices[i].hDevice, devinfo, instance, "Keyboard", hid_loaded);
|
|
|
- SDL_AddKeyboard(keyboardID, name, send_event);
|
|
|
+ SDL_AddKeyboard(keyboardID, name);
|
|
|
SDL_free(name);
|
|
|
}
|
|
|
}
|
|
@@ -1059,7 +1058,7 @@ void WIN_CheckKeyboardAndMouseHotplug(SDL_VideoDevice *_this, bool initial_check
|
|
|
AddDeviceID(mouseID, &new_mice, &new_mouse_count);
|
|
|
if (!HasDeviceID(mouseID, old_mice, old_mouse_count)) {
|
|
|
name = GetDeviceName(raw_devices[i].hDevice, devinfo, instance, "Mouse", hid_loaded);
|
|
|
- SDL_AddMouse(mouseID, name, send_event);
|
|
|
+ SDL_AddMouse(mouseID, name);
|
|
|
SDL_free(name);
|
|
|
}
|
|
|
}
|
|
@@ -1074,13 +1073,13 @@ void WIN_CheckKeyboardAndMouseHotplug(SDL_VideoDevice *_this, bool initial_check
|
|
|
|
|
|
for (int i = old_keyboard_count; i--;) {
|
|
|
if (!HasDeviceID(old_keyboards[i], new_keyboards, new_keyboard_count)) {
|
|
|
- SDL_RemoveKeyboard(old_keyboards[i], send_event);
|
|
|
+ SDL_RemoveKeyboard(old_keyboards[i]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (int i = old_mouse_count; i--;) {
|
|
|
if (!HasDeviceID(old_mice[i], new_mice, new_mouse_count)) {
|
|
|
- SDL_RemoveMouse(old_mice[i], send_event);
|
|
|
+ SDL_RemoveMouse(old_mice[i]);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1403,7 +1402,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
|
SDL_SendMouseMotion(WIN_GetEventTimestamp(), window, SDL_GLOBAL_MOUSE_ID, false, (float)GET_X_LPARAM(lParam), (float)GET_Y_LPARAM(lParam));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
} break;
|
|
|
|
|
|
case WM_LBUTTONUP:
|
|
@@ -2592,7 +2591,7 @@ void WIN_PumpEvents(SDL_VideoDevice *_this)
|
|
|
// and this coincidence might no longer
|
|
|
// be true in the future.
|
|
|
// Ergo this placement concordantly
|
|
|
- // conveys its unconditionality
|
|
|
+ // conveys its unconditionality
|
|
|
// vis-a-vis the queuing of clipcursor.
|
|
|
}
|
|
|
if (refresh_clipcursor) {
|