Fixed crash if the event subsystem didn't initialize properly
This commit is contained in:
parent
d3886466c4
commit
e1350b2302
1 changed files with 4 additions and 0 deletions
|
@ -584,6 +584,10 @@ SDL_EVDEV_Poll(void)
|
|||
Uint32 kval;
|
||||
#endif
|
||||
|
||||
if (!_this) {
|
||||
return;
|
||||
}
|
||||
|
||||
#if SDL_USE_LIBUDEV
|
||||
SDL_UDEV_Poll();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue