Joystick: Suppress add/remove device events

Previously they'll be printed to the console as a totally unknown events
together claim this shouldn't have happened which is just misleading.
This commit is contained in:
Sergey Sharybin 2014-12-31 14:56:42 +05:00
parent f3e7369d48
commit 784517dfb9

@ -123,6 +123,12 @@ void SCA_Joystick::HandleEvents(void)
case SDL_JOYBALLMOTION: case SDL_JOYBALLMOTION:
SCA_Joystick::m_instance[sdl_event.jball.which]->OnBallMotion(&sdl_event); SCA_Joystick::m_instance[sdl_event.jball.which]->OnBallMotion(&sdl_event);
break; break;
#endif
#if SDL_VERSION_ATLEAST(2, 0, 0)
case SDL_JOYDEVICEADDED:
case SDL_JOYDEVICEREMOVED:
/* pass */
break;
#endif #endif
default: default:
printf("SCA_Joystick::HandleEvents, Unknown SDL event (%d), this should not happen\n", sdl_event.type); printf("SCA_Joystick::HandleEvents, Unknown SDL event (%d), this should not happen\n", sdl_event.type);