comparison src/haptic/win32/SDL_syshaptic.c @ 2591:07a19c1cc0a7 gsoc2008_force_feedback

Disabled getting capabilities (not used atm).
author Edgar Simo <bobbens@gmail.com>
date Mon, 04 Aug 2008 17:16:11 +0000
parents a4410ff43f41
children 8152dd46fbe2
comparison
equal deleted inserted replaced
2590:a4410ff43f41 2591:07a19c1cc0a7
64 * Haptic system hardware data. 64 * Haptic system hardware data.
65 */ 65 */
66 struct haptic_hwdata 66 struct haptic_hwdata
67 { 67 {
68 LPDIRECTINPUTDEVICE2 device; 68 LPDIRECTINPUTDEVICE2 device;
69 DIDEVCAPS capabilities; 69 /* DIDEVCAPS capabilities; */
70 }; 70 };
71 71
72 72
73 /* 73 /*
74 * Haptic system effect data. 74 * Haptic system effect data.
285 if (FAILED(ret)) { 285 if (FAILED(ret)) {
286 DI_SetError("Setting data format",ret); 286 DI_SetError("Setting data format",ret);
287 goto query_err; 287 goto query_err;
288 } 288 }
289 289
290 #if 0
290 /* Get capabilities. */ 291 /* Get capabilities. */
291 ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device, 292 ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device,
292 &haptic->hwdata->capabilities ); 293 &haptic->hwdata->capabilities );
293 if (FAILED(ret)) { 294 if (FAILED(ret)) {
294 DI_SetError("Getting device capabilities",ret); 295 DI_SetError("Getting device capabilities",ret);
295 goto acquire_err; 296 goto acquire_err;
296 } 297 }
298 #endif
297 299
298 /* Acquire the device. */ 300 /* Acquire the device. */
299 ret = IDirectInputDevice2_Acquire(haptic->hwdata->device); 301 ret = IDirectInputDevice2_Acquire(haptic->hwdata->device);
300 if (FAILED(ret)) { 302 if (FAILED(ret)) {
301 DI_SetError("Acquiring DirectInput device",ret); 303 DI_SetError("Acquiring DirectInput device",ret);