Mouse relative position wrong values |
Mouse relative position wrong values |
Alexander Chaliovski
Guest
|
Anyone ?
|
|||||||||||
|
Mouse relative position wrong values |
Jeffrey Carpenter
Guest
|
Heya,
You aren't using SDL2's "independent resolution scaling" AKA logical size viewport (SDL_SetLogicalSize & friends) by chance, are you? If so, perhaps it may be possible that it could be interfering with your results? (Pure speculation from me) You can see how the values are adjusted to account for the feature in SDL_render.c:SDL_RendererEventWatch event handling for SDL_MOUSEMOTION, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP I am on Mac OS X v10.9.4 and did not appear to exhibit the odd behavior you describe, given your test sample. My testing sample was this file: http://pastebin.com/D7Sr3UJq (built off SDL2 v2.0.3 framework bundle). Cheers, Jeffrey Carpenter On 2014/09/ 21, at 12:13, Alexander Chaliovski wrote:
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Mouse relative position wrong values |
Alexander Chaliovski
Guest
|
Thank you for your reply. It happend on IOS . It seems the mouse SDL_MOUSEMOTION was including the event SDL_MOUSEBUTTONDOWN .
Do we have to check first for SDL_MOUSEBUTTONDOWNÂ and then listen for SDL_MOUSEMOTION events ? Thanks, Alex On Mon, Sep 22, 2014 at 11:24 PM, Jeffrey Carpenter wrote:
|
|||||||||||||||||
|