mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +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;
|
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
|
// Post the event, if desired
|
||||||
if (SDL_EventEnabled(SDL_EVENT_MOUSE_WHEEL)) {
|
if (SDL_EventEnabled(SDL_EVENT_MOUSE_WHEEL)) {
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
Reference in New Issue
Block a user