2 * $Source: /cvs/cvsroot/d2x/input/sdl_event.c,v $
5 * $Date: 2001-01-29 14:03:57 $
7 * SDL Event related stuff
9 * $Log: not supported by cvs2svn $
21 extern void key_handler(SDL_KeyboardEvent *event);
22 //added on 10/17/98 by Hans de Goede for mouse functionality
23 extern void mouse_button_handler(SDL_MouseButtonEvent *mbe);
24 extern void mouse_motion_handler(SDL_MouseMotionEvent *mme);
25 //end this section addition - Hans
27 static int initialised=0;
32 while (SDL_PollEvent(&event))
34 // if( (event.type == SDL_KEYEVENT) {
35 //added/changed on 10/17/98 by Hans de Goede for mouse functionality
36 //-killed- if( (event.type == SDL_KEYDOWN) || (event.type == SDL_KEYUP) ) {
41 key_handler((SDL_KeyboardEvent *)&event);
43 case SDL_MOUSEBUTTONDOWN:
44 case SDL_MOUSEBUTTONUP:
45 mouse_button_handler((SDL_MouseButtonEvent *)&event);
48 mouse_motion_handler((SDL_MouseMotionEvent *)&event);
51 //end this section addition/change - Hans
53 // void quit_request();
62 // We should now be active and responding to events.