src/events/SDL_events.c
branchgsoc2008_nds
changeset 2674 f1d07ba2e275
parent 2129 047245361002
child 2678 3895761db26a
     1.1 --- a/src/events/SDL_events.c	Thu Jun 19 07:11:35 2008 +0000
     1.2 +++ b/src/events/SDL_events.c	Mon Jun 23 11:55:26 2008 +0000
     1.3 @@ -31,6 +31,9 @@
     1.4  #if !SDL_JOYSTICK_DISABLED
     1.5  #include "../joystick/SDL_joystick_c.h"
     1.6  #endif
     1.7 +#if !SDL_TOUCHSCREEN_DISABLED
     1.8 +#include "../touchscreen/SDL_touchscreen_c.h"
     1.9 +#endif
    1.10  
    1.11  /* Public data -- the event filter */
    1.12  SDL_EventFilter SDL_EventOK = NULL;
    1.13 @@ -117,6 +120,12 @@
    1.14              SDL_JoystickUpdate();
    1.15          }
    1.16  #endif
    1.17 +#if !SDL_TOUCHSCREEN_DISABLED
    1.18 +        /* Similarly, check for touchscreen state change */
    1.19 +        if (SDL_numtouchscreens && (SDL_eventstate & SDL_TOUCHEVENTMASK)) {
    1.20 +            SDL_TouchscreenUpdate();
    1.21 +        }
    1.22 +#endif
    1.23  
    1.24          /* Give up the CPU for the rest of our timeslice */
    1.25          SDL_EventLock.safe = 1;
    1.26 @@ -388,6 +397,12 @@
    1.27              SDL_JoystickUpdate();
    1.28          }
    1.29  #endif
    1.30 +#if !SDL_TOUCHSCREEN_DISABLED
    1.31 +        /* Check for touchscreen state change */
    1.32 +        if (SDL_numtouchscreens && (SDL_eventstate & SDL_TOUCHEVENTMASK)) {
    1.33 +            SDL_TouchscreenUpdate();
    1.34 +        }
    1.35 +#endif
    1.36      }
    1.37  }
    1.38