Fixed crash if the event subsystem didn't initialize properly

This commit is contained in:
Sam Lantinga
2014-10-15 09:09:57 -07:00
parent d244d7c756
commit 2af49b5e11

View File

@@ -584,6 +584,10 @@ SDL_EVDEV_Poll(void)
Uint32 kval;
#endif
if (!_this) {
return;
}
#if SDL_USE_LIBUDEV
SDL_UDEV_Poll();
#endif