comparison src/haptic/darwin/SDL_syshaptic.c @ 2559:42b682e85546 gsoc2008_force_feedback

Allow effects with no axes.
author Edgar Simo <bobbens@gmail.com>
date Wed, 30 Jul 2008 18:29:55 +0000
parents 30778d9d8bff
children 3696b9ce8a37
comparison
equal deleted inserted replaced
2558:c38ac77ea28f 2559:42b682e85546
539 { 539 {
540 LONG *rglDir; 540 LONG *rglDir;
541 541
542 /* Handle no axes a part. */ 542 /* Handle no axes a part. */
543 if (naxes == 0) { 543 if (naxes == 0) {
544 effect->dwFlags |= FFEFF_SPHERICAL; /* Set as default. */
544 effect->rglDirection = NULL; 545 effect->rglDirection = NULL;
545 return 0; 546 return 0;
546 } 547 }
547 548
548 /* Has axes. */ 549 /* Has axes. */