Check the return value of SDL_EVDEV_Init()
This commit is contained in:
parent
9268415b53
commit
be34ee410d
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ RPI_VideoInit(_THIS)
|
||||||
SDL_AddVideoDisplay(&display);
|
SDL_AddVideoDisplay(&display);
|
||||||
|
|
||||||
#ifdef SDL_INPUT_LINUXEV
|
#ifdef SDL_INPUT_LINUXEV
|
||||||
SDL_EVDEV_Init();
|
if (SDL_EVDEV_Init() < 0) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RPI_InitMouse(_this);
|
RPI_InitMouse(_this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue