comparison src/video/x11/SDL_x11mouse.c @ 2962:1e242954330b

Hopefully fixed crash when there are no input devices
author Sam Lantinga <slouken@libsdl.org>
date Fri, 02 Jan 2009 10:30:53 +0000
parents 79dee7da6ba5
children dbff5769d742
comparison
equal deleted inserted replaced
2961:9f16a1761fa5 2962:1e242954330b
59 /* should have dynamically loaded, but wasn't available. */ 59 /* should have dynamically loaded, but wasn't available. */
60 return; 60 return;
61 } 61 }
62 62
63 /* we're getting the list of input devices */ 63 /* we're getting the list of input devices */
64 n = 0;
64 DevList = XListInputDevices(display, &n); 65 DevList = XListInputDevices(display, &n);
65 66
66 /* we're aquiring valuators: mice, tablets, etc. */ 67 /* we're aquiring valuators: mice, tablets, etc. */
67 for (i = 0; i < n; ++i) { 68 for (i = 0; i < n; ++i) {
68 /* if it's the core pointer or core keyborard we don't want it */ 69 /* if it's the core pointer or core keyborard we don't want it */