mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
Dispatch MouseUp events with SDL.
This commit is contained in:
parent
c61cbf4234
commit
0abc19b0ff
Notes:
sideshowbarker
2024-07-19 18:51:01 +09:00
Author: https://github.com/awesomekling
Commit: 0abc19b0ff
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ void EventLoopSDL::waitForEvent()
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button)));
|
postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button)));
|
||||||
return;
|
return;
|
||||||
|
case SDL_MOUSEBUTTONUP:
|
||||||
|
postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button)));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue