src/haptic/linux/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2478 4fd783e0f34b
parent 2477 97f75ea43a93
child 2479 b9eb2cfe16cd
--- a/src/haptic/linux/SDL_syshaptic.c	Mon Jun 30 16:48:16 2008 +0000
+++ b/src/haptic/linux/SDL_syshaptic.c	Mon Jun 30 17:28:34 2008 +0000
@@ -207,8 +207,9 @@
       goto open_err;
    }
    SDL_memset(haptic->hwdata, 0, sizeof(*haptic->hwdata));
-   /* Set the hwdata */
+   /* Set the data */
    haptic->hwdata->fd = fd;
+   haptic->supported = EV_IsHaptic(fd);
 
    /* Set the effects */
    if (ioctl(fd, EVIOCGEFFECTS, &haptic->neffects) < 0) {