Mercurial > sdl-ios-xcode
comparison include/SDL_haptic.h @ 2505:abfcba0f3bd1 gsoc2008_force_feedback
Added SDL_HapticIndex.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 08 Jul 2008 19:23:03 +0000 |
parents | e68c99a19a2f |
children | ba8e99fe92c1 |
comparison
equal
deleted
inserted
replaced
2504:e68c99a19a2f | 2505:abfcba0f3bd1 |
---|---|
634 * if an error occurred. | 634 * if an error occurred. |
635 * | 635 * |
636 * \param device_index Index of the device to open. | 636 * \param device_index Index of the device to open. |
637 * \return Device identifier or NULL on error. | 637 * \return Device identifier or NULL on error. |
638 * | 638 * |
639 * \sa SDL_HapticIndex | |
639 * \sa SDL_HapticOpenFromJoystick | 640 * \sa SDL_HapticOpenFromJoystick |
640 * \sa SDL_HapticClose | 641 * \sa SDL_HapticClose |
641 */ | 642 */ |
642 extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index); | 643 extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index); |
644 | |
645 | |
646 /** | |
647 * \fn int SDL_HapticIndex(SDL_Haptic * haptic) | |
648 * | |
649 * \brief Gets the index of a haptic device. | |
650 * | |
651 * \param haptic Haptic device to get the index of. | |
652 * \return The index of the haptic device or -1 on error. | |
653 * | |
654 * \sa SDL_HapticOpen | |
655 */ | |
656 extern DECLSPEC int SDL_HapticIndex(SDL_Haptic * haptic); | |
643 | 657 |
644 /** | 658 /** |
645 * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick) | 659 * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick) |
646 * | 660 * |
647 * \brief Checks to see if a joystick has haptic features. | 661 * \brief Checks to see if a joystick has haptic features. |