Mercurial > sdl-ios-xcode
comparison include/SDL_haptic.h @ 2478:4fd783e0f34b gsoc2008_force_feedback
Added query functions for haptic devices.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 30 Jun 2008 17:28:34 +0000 |
parents | 97f75ea43a93 |
children | b883974445fc |
comparison
equal
deleted
inserted
replaced
2477:97f75ea43a93 | 2478:4fd783e0f34b |
---|---|
98 * Closes a Haptic device previously opened with SDL_HapticOpen. | 98 * Closes a Haptic device previously opened with SDL_HapticOpen. |
99 */ | 99 */ |
100 extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic); | 100 extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic); |
101 | 101 |
102 /* | 102 /* |
103 * Returns the number of effects a haptic device can store. | |
104 */ | |
105 extern DECLSPEC int SDL_HapticNumEffects(SDL_Haptic * haptic); | |
106 | |
107 /* | |
108 * Returns the supported effects. Individual effects can be queried by | |
109 * bitwise operators. | |
110 * | |
111 * Example: (SDL_HapticQueryEffects(haptic) & SDL_HAPTIC_CONSTANT) | |
112 */ | |
113 extern DECLSPEC unsigned int SDL_HapticQueryEffects(SDL_Haptic * haptic); | |
114 | |
115 /* | |
103 * Creates a new haptic effect on the device. | 116 * Creates a new haptic effect on the device. |
104 */ | 117 */ |
105 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect); | 118 extern DECLSPEC int SDL_HapticNewEffect(SDL_Haptic * haptic, SDL_HapticEffect * effect); |
106 | 119 |
107 /* | 120 /* |