| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | * return 0; // Success |
| | | * } |
| | | * \endcode |
| | | * |
| | | * You can also find out more information on my blog: |
| | | * http://bobbens.dyndns.org/journal/2010/sdl_haptic/ |
| | | * |
| | | * \author Edgar Simo Serra |
| | | */ |
| | | |
| | | #ifndef _SDL_haptic_h |
| | |
| | | /** |
| | | * \brief Opens a Haptic device for usage from a Joystick device. |
| | | * |
| | | * You must still close the haptic device seperately. It will not be closed |
| | | * You must still close the haptic device separately. It will not be closed |
| | | * with the joystick. |
| | | * |
| | | * When opening from a joystick you should first close the haptic device before |
| | |
| | | extern DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic); |
| | | |
| | | /** |
| | | * \brief Gets the haptic devices supported features in bitwise matter. |
| | | * \brief Gets the haptic device's supported features in bitwise manner. |
| | | * |
| | | * Example: |
| | | * \code |