Mercurial > sdl-ios-xcode
comparison src/haptic/SDL_haptic.c @ 2486:24dd8b8669fa gsoc2008_force_feedback
Added SDL_HAPTIC_CUSTOM (not supported on linux).
Exposed SDL_HapticEffectSupported().
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 01 Jul 2008 16:19:54 +0000 |
parents | 67978eea6d10 |
children | 8e2bdbccf7ff |
comparison
equal
deleted
inserted
replaced
2485:67978eea6d10 | 2486:24dd8b8669fa |
---|---|
226 } | 226 } |
227 | 227 |
228 return haptic->supported; | 228 return haptic->supported; |
229 } | 229 } |
230 | 230 |
231 /* | |
232 * Checks to see if the device can support the effect. | |
233 */ | |
231 int | 234 int |
232 SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect * effect) | 235 SDL_HapticEffectSupported(SDL_Haptic * haptic, SDL_HapticEffect * effect) |
233 { | 236 { |
234 if (!ValidHaptic(&haptic)) { | 237 if (!ValidHaptic(&haptic)) { |
235 return -1; | 238 return -1; |