Mercurial > sdl-ios-xcode
comparison include/SDL_haptic.h @ 2484:666472fd4cb0 gsoc2008_force_feedback
HapticSetGain checks to see if device supports it.
Added HapticSetAutocenter().
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 01 Jul 2008 14:21:09 +0000 |
parents | 9d52368ebcf5 |
children | 67978eea6d10 |
comparison
equal
deleted
inserted
replaced
2483:9d52368ebcf5 | 2484:666472fd4cb0 |
---|---|
254 * | 254 * |
255 * Returns 0 on success or -1 on failure. | 255 * Returns 0 on success or -1 on failure. |
256 */ | 256 */ |
257 extern DECLSPEC int SDL_HapticSetGain(SDL_Haptic * haptic, int gain); | 257 extern DECLSPEC int SDL_HapticSetGain(SDL_Haptic * haptic, int gain); |
258 | 258 |
259 /* | |
260 * Sets the global autocenter of the device. Autocenter should be between | |
261 * 0 and 100. Setting it to 0 will disable autocentering. | |
262 * | |
263 * Returns 0 on success or -1 on failure. | |
264 */ | |
265 extern DECLSPEC int SDL_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter); | |
266 | |
259 | 267 |
260 /* Ends C function definitions when using C++ */ | 268 /* Ends C function definitions when using C++ */ |
261 #ifdef __cplusplus | 269 #ifdef __cplusplus |
262 /* *INDENT-OFF* */ | 270 /* *INDENT-OFF* */ |
263 } | 271 } |