mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
Dispatch MouseUp events with SDL.
This commit is contained in:
parent
c61cbf4234
commit
0abc19b0ff
|
@ -46,6 +46,9 @@ void EventLoopSDL::waitForEvent()
|
|||
case SDL_MOUSEBUTTONDOWN:
|
||||
postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button)));
|
||||
return;
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
postEvent(&AbstractScreen::the(), make<MouseEvent>(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue