]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
hush some unrecognized SDL event type warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 29 Mar 2011 01:32:20 +0000 (01:32 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 30 Mar 2011 07:01:22 +0000 (09:01 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10981 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d1a7d5d11e065a2fef1d0d9665cc8920fc42716f

vid_sdl.c

index 38abe8176ba77eb1fc470d6214f7e07c9944c71b..de9e5f9dff3af4e20fba458cd41985c6d0f2c13b 100644 (file)
--- 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?
                                {