mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 05:57:44 +00:00
Fixed crash if the event subsystem didn't initialize properly
This commit is contained in:
@@ -584,6 +584,10 @@ SDL_EVDEV_Poll(void)
|
|||||||
Uint32 kval;
|
Uint32 kval;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (!_this) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#if SDL_USE_LIBUDEV
|
#if SDL_USE_LIBUDEV
|
||||||
SDL_UDEV_Poll();
|
SDL_UDEV_Poll();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user