1 // SDL Event related stuff
9 extern void key_handler(SDL_KeyboardEvent *event);
10 //added on 10/17/98 by Hans de Goede for mouse functionality
11 extern void mouse_button_handler(SDL_MouseButtonEvent *mbe);
12 extern void mouse_motion_handler(SDL_MouseMotionEvent *mme);
13 //end this section addition - Hans
15 static int initialised=0;
20 while (SDL_PollEvent(&event))
22 // if( (event.type == SDL_KEYEVENT) {
23 //added/changed on 10/17/98 by Hans de Goede for mouse functionality
24 //-killed- if( (event.type == SDL_KEYDOWN) || (event.type == SDL_KEYUP) ) {
29 key_handler((SDL_KeyboardEvent *)&event);
31 case SDL_MOUSEBUTTONDOWN:
32 case SDL_MOUSEBUTTONUP:
33 mouse_button_handler((SDL_MouseButtonEvent *)&event);
36 mouse_motion_handler((SDL_MouseMotionEvent *)&event);
39 //end this section addition/change - Hans
41 // void quit_request();
50 // We should now be active and responding to events.