Home | History | Annotate | Download | only in test

Lines Matching refs:events

116 		/* Mouse and keyboard events go to threads */
124 /* Drop all other events */
132 SDL_Event events[10];
136 /* Handle mouse events here */
139 found = SDL_PeepEvents(events, 10, SDL_GETEVENT, mask);
141 switch(events[i].type) {
145 if ( events[i].button.state == SDL_PRESSED ) {
150 events[i].button.button,
151 (events[i].button.state == SDL_PRESSED) ?
157 events[i].motion.xrel, events[i].motion.yrel);
161 /* Give up some CPU to allow events to arrive */
169 SDL_Event events[10];
173 /* Handle mouse events here */
176 found = SDL_PeepEvents(events, 10, SDL_GETEVENT, mask);
178 switch(events[i].type) {
183 events[i].key.keysym.unicode,
184 (int) events[i].key.keysym.sym,
185 (events[i].key.state == SDL_PRESSED) ?
189 if ( events[i].key.keysym.sym == SDLK_ESCAPE ) {
193 /* skip events now that aren't KEYUPs... */
194 if (events[i].key.state == SDL_PRESSED)
197 if ( events[i].key.keysym.sym == SDLK_f ) {
204 if ( events[i].key.keysym.sym == SDLK_g ) {
217 /* Give up some CPU to allow events to arrive */
244 been compiled with threaded events enabled, then the mouse and
251 printf("Running with threaded events\n");
331 /* Give up some CPU so the events can accumulate */