src/haptic/SDL_haptic.c
changeset 3232 aa8de4b80772
parent 3080 4094b4f1c3a1
child 4472 791b3256fb22
     1.1 --- a/src/haptic/SDL_haptic.c	Wed Aug 05 08:12:31 2009 +0000
     1.2 +++ b/src/haptic/SDL_haptic.c	Wed Aug 05 16:31:49 2009 +0000
     1.3 @@ -263,11 +263,13 @@
     1.4  
     1.5      /* Must be a valid joystick */
     1.6      if (!SDL_PrivateJoystickValid(&joystick)) {
     1.7 +        SDL_SetError("Haptic: Joystick isn't valid.");
     1.8          return NULL;
     1.9      }
    1.10  
    1.11      /* Joystick must be haptic */
    1.12      if (SDL_SYS_JoystickIsHaptic(joystick) <= 0) {
    1.13 +        SDL_SetError("Haptic: Joystick isn't a haptic device.");
    1.14          return NULL;
    1.15      }
    1.16