src/events/SDL_mouse.c
branchgsoc2008_manymouse
changeset 3763 81ea7d9a6624
parent 3760 64f346a83ed3
child 3764 2970fcfbdd54
     1.1 --- a/src/events/SDL_mouse.c	Wed Jul 02 20:20:51 2008 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Wed Jul 02 20:29:29 2008 +0000
     1.3 @@ -319,6 +319,24 @@
     1.4  }
     1.5  
     1.6  int
     1.7 +SDL_SendProximity(int id, int x, int y, int type)
     1.8 +{
     1.9 +    int index=SDL_GetIndexById(id);
    1.10 +    int posted=0;
    1.11 +    if(SDL_ProcessEvents[type]==SDL_ENABLE)
    1.12 +    {
    1.13 +        SDL_Event event;
    1.14 +        event.proximity.which=index;
    1.15 +        event.proximity.x=x;
    1.16 +        event.proximity.y=y;
    1.17 +        event.type=type;
    1.18 +        event.proximity.type=type;
    1.19 +        posted = (SDL_PushEvent(&event) > 0);
    1.20 +    }
    1.21 +    return posted;
    1.22 +}
    1.23 +
    1.24 +int
    1.25  SDL_SendMouseMotion(int id, int relative, int x, int y,int z)
    1.26  {
    1.27      int index=SDL_GetIndexById(id);