src/events/SDL_mouse.c
changeset 4429 faa9fc8e7f67
parent 3697 f7b03b6838cb
child 4465 3e69e077cb95
     1.1 --- a/src/events/SDL_mouse.c	Wed Mar 10 15:07:20 2010 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Thu Mar 25 01:08:26 2010 -0700
     1.3 @@ -365,7 +365,7 @@
     1.4  
     1.5      mouse->last_x = x;
     1.6      mouse->last_y = y;
     1.7 -    if (SDL_ProcessEvents[type] == SDL_ENABLE) {
     1.8 +    if (SDL_GetEventState(type) == SDL_ENABLE) {
     1.9          SDL_Event event;
    1.10          event.proximity.which = (Uint8) index;
    1.11          event.proximity.x = x;
    1.12 @@ -461,7 +461,7 @@
    1.13  
    1.14      /* Post the event, if desired */
    1.15      posted = 0;
    1.16 -    if (SDL_ProcessEvents[SDL_MOUSEMOTION] == SDL_ENABLE &&
    1.17 +    if (SDL_GetEventState(SDL_MOUSEMOTION) == SDL_ENABLE &&
    1.18          mouse->proximity == SDL_TRUE) {
    1.19          SDL_Event event;
    1.20          event.motion.type = SDL_MOUSEMOTION;
    1.21 @@ -493,7 +493,7 @@
    1.22      int index = SDL_GetMouseIndexId(id);
    1.23      SDL_Mouse *mouse = SDL_GetMouse(index);
    1.24      int posted;
    1.25 -    Uint8 type;
    1.26 +    Uint32 type;
    1.27  
    1.28      if (!mouse) {
    1.29          return 0;
    1.30 @@ -524,7 +524,7 @@
    1.31  
    1.32      /* Post the event, if desired */
    1.33      posted = 0;
    1.34 -    if (SDL_ProcessEvents[type] == SDL_ENABLE) {
    1.35 +    if (SDL_GetEventState(type) == SDL_ENABLE) {
    1.36          SDL_Event event;
    1.37          event.type = type;
    1.38          event.button.which = (Uint8) index;
    1.39 @@ -550,7 +550,7 @@
    1.40  
    1.41      /* Post the event, if desired */
    1.42      posted = 0;
    1.43 -    if (SDL_ProcessEvents[SDL_MOUSEWHEEL] == SDL_ENABLE) {
    1.44 +    if (SDL_GetEventState(SDL_MOUSEWHEEL) == SDL_ENABLE) {
    1.45          SDL_Event event;
    1.46          event.type = SDL_MOUSEWHEEL;
    1.47          event.wheel.which = (Uint8) index;