equal
deleted
inserted
replaced
230 */ |
230 */ |
231 extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic); |
231 extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic); |
232 |
232 |
233 /* |
233 /* |
234 * Creates a new haptic effect on the device. |
234 * Creates a new haptic effect on the device. |
|
235 * |
|
236 * Returns the id of the effect on success, -1 on failure. |
235 */ |
237 */ |
236 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect); |
238 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect); |
237 |
239 |
238 /* |
240 /* |
239 * Runs the haptic effect on it's assosciated haptic device. |
241 * Runs the haptic effect on it's assosciated haptic device. |
|
242 * |
|
243 * Returns 0 on success or -1 on failure. |
240 */ |
244 */ |
241 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect); |
245 extern DECLSPEC int SDL_HapticRunEffect(SDL_Haptic * haptic, int effect); |
242 |
246 |
243 /* |
247 /* |
244 * Destroys a haptic effect on the device. |
248 * Destroys a haptic effect on the device. |
245 */ |
249 */ |
246 extern DECLSPEC void SDL_HapticDestroyEffect(SDL_Haptic * haptic, int effect); |
250 extern DECLSPEC void SDL_HapticDestroyEffect(SDL_Haptic * haptic, int effect); |
|
251 |
|
252 /* |
|
253 * Sets the global gain of the device. Gain should be between 0 and 100. |
|
254 * |
|
255 * Returns 0 on success or -1 on failure. |
|
256 */ |
|
257 extern DECLSPEC int SDL_HapticSetGain(SDL_Haptic * haptic, int gain); |
247 |
258 |
248 |
259 |
249 /* Ends C function definitions when using C++ */ |
260 /* Ends C function definitions when using C++ */ |
250 #ifdef __cplusplus |
261 #ifdef __cplusplus |
251 /* *INDENT-OFF* */ |
262 /* *INDENT-OFF* */ |