# HG changeset patch # User Edgar Simo # Date 1217869732 0 # Node ID 57bd3e4621384a105c923e6524b00dcbbfa30161 # Parent b4b3beaea5b5fb10fce6f90f64dfa0abd2dd8144 Seems like you have to set the data format too. diff -r b4b3beaea5b5 -r 57bd3e462138 src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Mon Aug 04 17:03:20 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Mon Aug 04 17:08:52 2008 +0000 @@ -229,6 +229,7 @@ * - Create DirectInputDevice2 interface. * - Release DirectInputDevice interface. * - Set cooperative level. + * - Set data format. * - Acquire exclusiveness. * - Reset actuators. * - Get supported featuers. @@ -277,6 +278,14 @@ goto acquire_err; } + /* Set data format. */ + ret = IDirectInputDevice2_SetDataFormat( haptic->hwdata->device, + &c_dfDIJoystick2 ); + if (FAILED(ret)) { + DI_SetError("Setting data format",ret); + goto query_error; + } + /* Acquire the device. */ ret = IDirectInputDevice2_Acquire(haptic->hwdata->device); if (FAILED(ret)) {