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