Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Implemented SDL_SYS_HapticMouse on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 6, 2008
1 parent 436bc15 commit 2ccda11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -453,8 +453,13 @@ SDL_SYS_HapticMouse(void)
{
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;
}

Expand Down

0 comments on commit 2ccda11

Please sign in to comment.