Mercurial > sdl-ios-xcode
changeset 2615:088907e9a2bb gsoc2008_force_feedback
Implemented SDL_SYS_HapticMouse on windows.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Wed, 06 Aug 2008 07:59:03 +0000 |
parents | 3ee319d9800a |
children | acd5da848404 |
files | src/haptic/win32/SDL_syshaptic.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/haptic/win32/SDL_syshaptic.c Wed Aug 06 07:54:33 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Wed Aug 06 07:59:03 2008 +0000 @@ -453,8 +453,13 @@ { int i; + /* Grab the first mouse haptic device we find. */ for (i=0; i<SDL_numhaptics; i++) { + if (SDL_hapticlist[i].capabilities.dwDevType == DIDEVTYPE_MOUSE ) { + return i; + } } + return -1; }