Hopefully fixed crash when there are no input devices

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403424
This commit is contained in:
Sam Lantinga 2009-01-02 10:30:53 +00:00
parent 382a1fe6c7
commit 959558fe22

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