src/video/directfb/SDL_DirectFB_events.c
branchSDL-1.2
changeset 6109 469e95e71627
parent 4159 a1b03ba2fcd0
child 6137 4720145f848b
     1.1 --- a/src/video/directfb/SDL_DirectFB_events.c	Fri Dec 02 18:35:04 2011 -0500
     1.2 +++ b/src/video/directfb/SDL_DirectFB_events.c	Thu Dec 29 04:24:15 2011 -0500
     1.3 @@ -79,6 +79,15 @@
     1.4                else if (evt.axis == DIAI_Y)
     1.5                  posted += SDL_PrivateMouseMotion(0, 1, 0, evt.axisrel);
     1.6              }
     1.7 +          else if (evt.flags & DIEF_AXISABS)
     1.8 +            {
     1.9 +              static int last_x, last_y;
    1.10 +              if (evt.axis == DIAI_X)
    1.11 +                last_x = evt.axisabs;
    1.12 +              else if (evt.axis == DIAI_Y)
    1.13 +                last_y = evt.axisabs;
    1.14 +              posted += SDL_PrivateMouseMotion(0, 0, last_x, last_y);
    1.15 +            }
    1.16            break;
    1.17          default:
    1.18            ;