mirror of
https://github.com/yawut/SDL.git
synced 2026-07-30 07:02:07 -05:00
Hopefully fixed crash when there are no input devices
This commit is contained in:
parent
7a39366cbb
commit
a73ce044b0
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user