mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Mouse events only get a mouse ID in relative mode
This commit is contained in:
@@ -954,6 +954,11 @@ void SDL_SendMouseWheel(Uint64 timestamp, SDL_Window *window, SDL_MouseID mouseI
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mouse->relative_mode || mouse->warp_emulation_active) {
|
||||
// We're not in relative mode, so all mouse events are global mouse events
|
||||
mouseID = SDL_GLOBAL_MOUSE_ID;
|
||||
}
|
||||
|
||||
// Post the event, if desired
|
||||
if (SDL_EventEnabled(SDL_EVENT_MOUSE_WHEEL)) {
|
||||
SDL_Event event;
|
||||
|
Reference in New Issue
Block a user