changeset 4423:7953336267c2

Disable error checks for reset actuators and set autocenter. Reset actuators and set autocenter might not actually be supported on all implementations. We'll just disable error checking since they aren't critical to neither opening the joystick nor the haptic subsystem.
author Edgar Simo <bobbens@gmail.com>
date Sun, 28 Feb 2010 09:23:23 +0000
parents 2e140f18aba7
children 274743af0430
files src/joystick/win32/SDL_dxjoystick.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/win32/SDL_dxjoystick.c	Sun Feb 28 03:23:07 2010 -0500
+++ b/src/joystick/win32/SDL_dxjoystick.c	Sun Feb 28 09:23:23 2010 +0000
@@ -439,11 +439,13 @@
                                                          InputDevice,
                                                          DISFFC_RESET);
 
+        /* Not necessarily supported, ignore if not supported.
         if (FAILED(result)) {
             SetDIerror("IDirectInputDevice2::SendForceFeedbackCommand",
                        result);
             return (-1);
         }
+        */
 
         result = IDirectInputDevice2_Unacquire(joystick->hwdata->InputDevice);
 
@@ -462,10 +464,12 @@
             IDirectInputDevice2_SetProperty(joystick->hwdata->InputDevice,
                                             DIPROP_AUTOCENTER, &dipdw.diph);
 
+        /* Not necessarily supported, ignore if not supported.
         if (FAILED(result)) {
             SetDIerror("IDirectInputDevice2::SetProperty", result);
             return (-1);
         }
+        */
     }
 
     /* What buttons and axes does it have? */