Patch by Janosch Gräf <janosch.graef@gmx.net>
authorEdgar Simo <bobbens@gmail.com>
Wed, 05 Aug 2009 16:31:49 +0000
changeset 3232aa8de4b80772
parent 3231 cf1ec33ae056
child 3233 91eaef1c9cfe
Patch by Janosch Gräf <janosch.graef@gmx.net>

I just noticed that there are rarely error messages and added some.
src/haptic/SDL_haptic.c
     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