forked from bartvdbraak/blender
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:
parent
f3e7369d48
commit
784517dfb9
@ -123,6 +123,12 @@ void SCA_Joystick::HandleEvents(void)
|
||||
case SDL_JOYBALLMOTION:
|
||||
SCA_Joystick::m_instance[sdl_event.jball.which]->OnBallMotion(&sdl_event);
|
||||
break;
|
||||
#endif
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
case SDL_JOYDEVICEADDED:
|
||||
case SDL_JOYDEVICEREMOVED:
|
||||
/* pass */
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
printf("SCA_Joystick::HandleEvents, Unknown SDL event (%d), this should not happen\n", sdl_event.type);
|
||||
|
Loading…
Reference in New Issue
Block a user