Mercurial > sdl-ios-xcode
comparison include/SDL_haptic.h @ 2476:242d8a668ebb gsoc2008_force_feedback
* Implemented opening and closing of haptic devices.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Mon, 23 Jun 2008 09:01:58 +0000 |
parents | 3f73c88c9abb |
children | 97f75ea43a93 |
comparison
equal
deleted
inserted
replaced
2475:4b874e3a3a2c | 2476:242d8a668ebb |
---|---|
63 * Count the number of joysticks attached to the system | 63 * Count the number of joysticks attached to the system |
64 */ | 64 */ |
65 extern DECLSPEC int SDLCALL SDL_NumHaptics(void); | 65 extern DECLSPEC int SDLCALL SDL_NumHaptics(void); |
66 | 66 |
67 /* | 67 /* |
68 * Get the implementation dependent name of a joystick. | 68 * Get the implementation dependent name of a Haptic device. |
69 * This can be called before any joysticks are opened. | 69 * This can be called before any joysticks are opened. |
70 * If no name can be found, this function returns NULL. | 70 * If no name can be found, this function returns NULL. |
71 */ | 71 */ |
72 extern DECLSPEC const char *SDLCALL SDL_HapticName(int device_index); | 72 extern DECLSPEC const char *SDLCALL SDL_HapticName(int device_index); |
73 | |
74 /* | |
75 * Opens a Haptic device for usage - the index passed as an | |
76 * argument refers to the N'th Haptic device on this system. | |
77 * | |
78 * This function returns a Haptic device identifier, or Null | |
79 * if an error occurred. | |
80 */ | |
81 extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index); | |
82 | |
83 /* | |
84 * Closes a Haptic device previously opened with SDL_HapticOpen. | |
85 */ | |
86 extern DECLSPEC void SDL_HapticClose(SDL_Haptic * haptic); | |
73 | 87 |
74 | 88 |
75 /* Ends C function definitions when using C++ */ | 89 /* Ends C function definitions when using C++ */ |
76 #ifdef __cplusplus | 90 #ifdef __cplusplus |
77 /* *INDENT-OFF* */ | 91 /* *INDENT-OFF* */ |