Hopefully fixed crash when there are no input devices

This commit is contained in:
Sam Lantinga 2009-01-02 10:30:53 +00:00
parent 7a39366cbb
commit a73ce044b0

View File

@ -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. */