Mercurial > sdl-ios-xcode
diff src/haptic/SDL_syshaptic.h @ 2512:ef147ee4896c gsoc2008_force_feedback
Improved some ioctl handling.
Implemented SDL_MouseIsHaptic and SDL_HapticOpenFromMouse.
More code comments.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 10 Jul 2008 08:38:08 +0000 |
parents | 66c02abeef0e |
children | 030fc4375e63 |
line wrap: on
line diff
--- a/src/haptic/SDL_syshaptic.h Wed Jul 09 18:29:11 2008 +0000 +++ b/src/haptic/SDL_syshaptic.h Thu Jul 10 08:38:08 2008 +0000 @@ -25,6 +25,12 @@ #include "SDL_haptic.h" +/* + * Number of haptic devices on the system. + */ +extern Uint8 SDL_numhaptics; + + struct haptic_effect { SDL_HapticEffect effect; /* The current event */ @@ -68,6 +74,11 @@ extern int SDL_SYS_HapticOpen(SDL_Haptic * haptic); /* + * Returns the index of the haptic core pointer or -1 if none is found. + */ +int SDL_SYS_HapticMouse(void); + +/* * Checks to see if the joystick has haptic capabilities. * * Returns >0 if haptic capabilities are detected, 0 if haptic @@ -83,7 +94,6 @@ */ extern int SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick); - /* * Checks to see if haptic device and joystick device are the same. *