--- rt_in.c.orig Wed Feb 18 08:30:12 2004 +++ rt_in.c Wed Feb 18 08:54:20 2004 @@ -155,9 +155,9 @@ // //****************************************************************************] -static KeyboardDef KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51}; -static JoystickDef JoyDefs[MaxJoys]; -static ControlType Controls[MAXPLAYERS]; +KeyboardDef KbdDefs = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51}; +JoystickDef JoyDefs[MaxJoys]; +ControlType Controls[MAXPLAYERS]; static boolean IN_Started; @@ -665,14 +665,16 @@ { int buttons = 0; +#if USE_SDL + int bmask, i; + const static int tbl[] = {SDL_BUTTON_LEFT,SDL_BUTTON_RIGHT,SDL_BUTTON_MIDDLE,SDL_BUTTON_WHEELUP,SDL_BUTTON_WHEELDOWN}; +#endif IN_PumpEvents(); #if USE_SDL #if 1 - int bmask = SDL_GetMouseState(NULL,NULL); - int i; - const static int tbl[] = {SDL_BUTTON_LEFT,SDL_BUTTON_RIGHT,SDL_BUTTON_MIDDLE,SDL_BUTTON_WHEELUP,SDL_BUTTON_WHEELDOWN}; + bmask = SDL_GetMouseState(NULL,NULL); for(i=0;i