[Ohrrpgce] [ohrrpgce/ohrrpgce] gfx_sdl2: mouse position not reported when dragging off the window (#1189)

Ralph Versteegen notifications at github.com
Wed Jan 13 14:52:17 PST 2021


In gfx_sdl2, the mouse position stops updating and buttons become unpressed as soon as the mouse leaves the window regardless of dragging. This differs from all other backends, which at least report it when dragging, and is a problem for some games, e.g. if you can drag the view.

We need to use `SDL_CaptureMouse` to fix this.

Also I'd prefer if we could get the mouse position outside the window even when not dragging, for the purpose of previewing tools like Line and Ellipse in the sprite drawer.

Also, kylekrack reported the following problem on Mac which I think is probably the same thing:

> This is a pretty specific thing, but when I have the game fullscreen at a different resolution than my monitor (my monitor is 16:9, I have the game in 4:3), it doesn't recognize the mouse being at the bottom of the screen.
> Again, for the purpose of moving the camera, it works in all directions except down.
> This problem doesn't occur when the game's resolution matches my monitor

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1189
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210113/472d16f8/attachment.html>


More information about the Ohrrpgce mailing list