mirror of
https://github.com/yawut/SDL.git
synced 2026-08-25 02:05:07 -05:00
Hopefully fixed crash when there are no input devices
This commit is contained in:
@@ -61,6 +61,7 @@ X11_InitMouse(_THIS)
|
||||
}
|
||||
|
||||
/* we're getting the list of input devices */
|
||||
n = 0;
|
||||
DevList = XListInputDevices(display, &n);
|
||||
|
||||
/* we're aquiring valuators: mice, tablets, etc. */
|
||||
|
||||
Reference in New Issue
Block a user