Make sure axes have force feedback actuators. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 16:13:11 +0000
branchgsoc2008_force_feedback
changeset 2605 0ea3be6e81a7
parent 2604 4eee4d565368
child 2606 bb175d957174
Make sure axes have force feedback actuators.
src/haptic/win32/SDL_syshaptic.c
--- a/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 16:02:56 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 16:13:11 2008 +0000
@@ -231,7 +231,7 @@
 {
    SDL_Haptic *haptic = (SDL_Haptic *) pvRef;
 
-   if (dev->dwType & DIDFT_AXIS) {
+   if ((dev->dwType & DIDFT_AXIS) && (dev->dwFlags & DIDOI_FFACTUATOR)) {
 
       haptic->naxes++;