# HG changeset patch # User Sam Lantinga # Date 1325150655 18000 # Node ID 469e95e716275b2194a2fc81a2e3026af6a077dc # Parent c5d651a8b67918144b4ec9913fa8fe8b68f40bff Fixed bug 1032 Matthias Hawran 2010-07-28 03:00:49 PDT Hi, I simply want to "forward" this post (http://forums.libsdl.org/viewtopic.php?t=4123) about absolute mouse events not being monitored by SDL 1.2 as directfb / tslib generates them. It's fixed in 1.3 and IMHO it should be backported to 1.2 Included the patch from the post (thanks to Guillaume Chereau) Cheers, Matthias diff -r c5d651a8b679 -r 469e95e71627 src/video/directfb/SDL_DirectFB_events.c --- a/src/video/directfb/SDL_DirectFB_events.c Fri Dec 02 18:35:04 2011 -0500 +++ b/src/video/directfb/SDL_DirectFB_events.c Thu Dec 29 04:24:15 2011 -0500 @@ -79,6 +79,15 @@ else if (evt.axis == DIAI_Y) posted += SDL_PrivateMouseMotion(0, 1, 0, evt.axisrel); } + else if (evt.flags & DIEF_AXISABS) + { + static int last_x, last_y; + if (evt.axis == DIAI_X) + last_x = evt.axisabs; + else if (evt.axis == DIAI_Y) + last_y = evt.axisabs; + posted += SDL_PrivateMouseMotion(0, 0, last_x, last_y); + } break; default: ;