From 36054a86f24cfc4218372d7a0a9627fd8d15ab20 Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Wed, 6 Aug 2008 11:02:13 +0000 Subject: [PATCH] Removed TODO. Updated comments. --- src/haptic/win32/SDL_syshaptic.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/haptic/win32/SDL_syshaptic.c b/src/haptic/win32/SDL_syshaptic.c index bb26a4e54..e796fad2a 100644 --- a/src/haptic/win32/SDL_syshaptic.c +++ b/src/haptic/win32/SDL_syshaptic.c @@ -469,8 +469,11 @@ SDL_SYS_HapticOpenFromDevice2(SDL_Haptic * haptic, LPDIRECTINPUTDEVICE2 device2) haptic->supported |= SDL_HAPTIC_STATUS; /* Check maximum effects. */ - haptic->neffects = 128; /* TODO actually figure this out. */ - haptic->nplaying = 128; + haptic->neffects = 128; /* This is not actually supported as thus under windows, + there is no way to tell the number of EFFECTS that a + device can hold, so we'll just use a "random" number + instead and put warnings in SDL_haptic.h */ + haptic->nplaying = 128; /* Even more impossible to get this then neffects. */ /* Prepare effects memory. */ haptic->effects = (struct haptic_effect *)