Mercurial > sdl-ios-xcode
comparison include/SDL_haptic.h @ 2506:ba8e99fe92c1 gsoc2008_force_feedback
Added SDL_HapticOpened().
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 08 Jul 2008 19:35:10 +0000 |
parents | abfcba0f3bd1 |
children | 8ef1d0f4d0c1 |
comparison
equal
deleted
inserted
replaced
2505:abfcba0f3bd1 | 2506:ba8e99fe92c1 |
---|---|
640 * \sa SDL_HapticOpenFromJoystick | 640 * \sa SDL_HapticOpenFromJoystick |
641 * \sa SDL_HapticClose | 641 * \sa SDL_HapticClose |
642 */ | 642 */ |
643 extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index); | 643 extern DECLSPEC SDL_Haptic * SDL_HapticOpen(int device_index); |
644 | 644 |
645 /** | |
646 * \fn int SDL_HapticOpened(int device_index) | |
647 * | |
648 * \brief Checks if the haptic device at index has been opened. | |
649 * | |
650 * \param device_index Index to check to see if it has been opened. | |
651 * \return 1 if it has been opened or 0 if it hasn't. | |
652 * | |
653 * \sa SDL_HapticOpen | |
654 * \sa SDL_HapticIndex | |
655 */ | |
656 extern DECLSPEC int SDL_HapticOpened(int device_index); | |
645 | 657 |
646 /** | 658 /** |
647 * \fn int SDL_HapticIndex(SDL_Haptic * haptic) | 659 * \fn int SDL_HapticIndex(SDL_Haptic * haptic) |
648 * | 660 * |
649 * \brief Gets the index of a haptic device. | 661 * \brief Gets the index of a haptic device. |
650 * | 662 * |
651 * \param haptic Haptic device to get the index of. | 663 * \param haptic Haptic device to get the index of. |
652 * \return The index of the haptic device or -1 on error. | 664 * \return The index of the haptic device or -1 on error. |
653 * | 665 * |
654 * \sa SDL_HapticOpen | 666 * \sa SDL_HapticOpen |
667 * \sa SDL_HapticOpened | |
655 */ | 668 */ |
656 extern DECLSPEC int SDL_HapticIndex(SDL_Haptic * haptic); | 669 extern DECLSPEC int SDL_HapticIndex(SDL_Haptic * haptic); |
657 | 670 |
658 /** | 671 /** |
659 * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick) | 672 * \fn int SDL_JoystickIsHaptic(SDL_Joystick * joystick) |