comparison src/haptic/win32/SDL_syshaptic.c @ 3011:8f4ed5ec2b06

I ran a global "make indent" it modified the following files.
author Bob Pendleton <bob@pendleton.com>
date Fri, 09 Jan 2009 20:43:30 +0000
parents 6bacfecbf27e
children 8cc00819c8d6
comparison
equal deleted inserted replaced
3010:a6694a812119 3011:8f4ed5ec2b06
210 } 210 }
211 211
212 /* Get capabilities. */ 212 /* Get capabilities. */
213 SDL_hapticlist[SDL_numhaptics].capabilities.dwSize = sizeof(DIDEVCAPS); 213 SDL_hapticlist[SDL_numhaptics].capabilities.dwSize = sizeof(DIDEVCAPS);
214 ret = IDirectInputDevice_GetCapabilities(device, 214 ret = IDirectInputDevice_GetCapabilities(device,
215 &SDL_hapticlist[SDL_numhaptics]. 215 &SDL_hapticlist
216 capabilities); 216 [SDL_numhaptics].capabilities);
217 if (FAILED(ret)) { 217 if (FAILED(ret)) {
218 /* DI_SetError("Getting device capabilities",ret); */ 218 /* DI_SetError("Getting device capabilities",ret); */
219 IDirectInputDevice_Release(device); 219 IDirectInputDevice_Release(device);
220 return DIENUM_CONTINUE; 220 return DIENUM_CONTINUE;
221 } 221 }
330 } 330 }
331 331
332 /* Now get the IDirectInputDevice2 interface, instead. */ 332 /* Now get the IDirectInputDevice2 interface, instead. */
333 ret = IDirectInputDevice_QueryInterface(device, 333 ret = IDirectInputDevice_QueryInterface(device,
334 &IID_IDirectInputDevice2, 334 &IID_IDirectInputDevice2,
335 (LPVOID *) & haptic->hwdata-> 335 (LPVOID *) & haptic->
336 device); 336 hwdata->device);
337 /* Done with the temporary one now. */ 337 /* Done with the temporary one now. */
338 IDirectInputDevice_Release(device); 338 IDirectInputDevice_Release(device);
339 if (FAILED(ret)) { 339 if (FAILED(ret)) {
340 DI_SetError("Querying DirectInput interface", ret); 340 DI_SetError("Querying DirectInput interface", ret);
341 goto creat_err; 341 goto creat_err;
498 */ 498 */
499 int 499 int
500 SDL_SYS_HapticOpen(SDL_Haptic * haptic) 500 SDL_SYS_HapticOpen(SDL_Haptic * haptic)
501 { 501 {
502 return SDL_SYS_HapticOpenFromInstance(haptic, 502 return SDL_SYS_HapticOpenFromInstance(haptic,
503 SDL_hapticlist[haptic->index]. 503 SDL_hapticlist[haptic->
504 instance); 504 index].instance);
505 } 505 }
506 506
507 507
508 /* 508 /*
509 * Opens a haptic device from first mouse it finds for usage. 509 * Opens a haptic device from first mouse it finds for usage.