test/testoverlay2.c
changeset 1642 f1211a4b7380
parent 1439 4d3bb026cd16
child 1662 782fd950bd46
child 1895 c121d94672cb
     1.1 --- a/test/testoverlay2.c	Mon Apr 17 04:54:08 2006 +0000
     1.2 +++ b/test/testoverlay2.c	Mon Apr 17 05:38:33 2006 +0000
     1.3 @@ -526,6 +526,10 @@
     1.4                           resized=1;
     1.5                       }
     1.6                       break;
     1.7 +                case SDL_MOUSEBUTTONDOWN:
     1.8 +                     overlayrect.x = event.button.x - overlayrect.w/2;
     1.9 +                     overlayrect.y = event.button.y - overlayrect.h/2;
    1.10 +                     break;
    1.11                  case SDL_KEYDOWN:
    1.12                       if (event.key.keysym.sym == SDLK_SPACE)
    1.13                       {