From: havoc Date: Tue, 29 Mar 2011 01:32:20 +0000 (+0000) Subject: hush some unrecognized SDL event type warnings X-Git-Tag: xonotic-v0.6.0~163^2~565 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1a7d5d11e065a2fef1d0d9665cc8920fc42716f;p=xonotic%2Fdarkplaces.git hush some unrecognized SDL event type warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10981 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_sdl.c b/vid_sdl.c index 38abe817..de9e5f9d 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -922,6 +922,12 @@ void Sys_SendKeyEvents( void ) if (event.jbutton.button < 48) Key_Event( event.jbutton.button + (event.jbutton.button < 16 ? K_JOY1 : K_AUX1 - 16), 0, (event.jbutton.state == SDL_PRESSED) ); break; + case SDL_JOYAXISMOTION: + case SDL_JOYBALLMOTION: + case SDL_JOYHATMOTION: + break; + case SDL_VIDEOEXPOSE: + break; case SDL_VIDEORESIZE: if(vid_resizable.integer < 2) { @@ -1032,6 +1038,12 @@ void Sys_SendKeyEvents( void ) if (event.jbutton.button < 48) Key_Event( event.jbutton.button + (event.jbutton.button < 16 ? K_JOY1 : K_AUX1 - 16), 0, (event.jbutton.state == SDL_PRESSED) ); break; + case SDL_JOYAXISMOTION: + case SDL_JOYBALLMOTION: + case SDL_JOYHATMOTION: + break; + case SDL_VIDEOEXPOSE: + break; case SDL_WINDOWEVENT: //if (event.window.windowID == window) // how to compare? {