src/video/directfb/SDL_DirectFB_events.c
branchSDL-1.2
changeset 6109 469e95e71627
parent 4159 a1b03ba2fcd0
child 6137 4720145f848b
equal deleted inserted replaced
6099:c5d651a8b679 6109:469e95e71627
    76             {
    76             {
    77               if (evt.axis == DIAI_X)
    77               if (evt.axis == DIAI_X)
    78                 posted += SDL_PrivateMouseMotion(0, 1, evt.axisrel, 0);
    78                 posted += SDL_PrivateMouseMotion(0, 1, evt.axisrel, 0);
    79               else if (evt.axis == DIAI_Y)
    79               else if (evt.axis == DIAI_Y)
    80                 posted += SDL_PrivateMouseMotion(0, 1, 0, evt.axisrel);
    80                 posted += SDL_PrivateMouseMotion(0, 1, 0, evt.axisrel);
       
    81             }
       
    82           else if (evt.flags & DIEF_AXISABS)
       
    83             {
       
    84               static int last_x, last_y;
       
    85               if (evt.axis == DIAI_X)
       
    86                 last_x = evt.axisabs;
       
    87               else if (evt.axis == DIAI_Y)
       
    88                 last_y = evt.axisabs;
       
    89               posted += SDL_PrivateMouseMotion(0, 0, last_x, last_y);
    81             }
    90             }
    82           break;
    91           break;
    83         default:
    92         default:
    84           ;
    93           ;
    85         }
    94         }