table of contents
other versions
SDL_HapticOpened(3) | SDL3 FUNCTIONS | SDL_HapticOpened(3) |
NAME¶
SDL_HapticOpened - Check if the haptic device at the designated index has been opened.
SYNOPSIS¶
#include "SDL3/SDL.h"
int SDL_HapticOpened(int device_index);
FUNCTION PARAMETERS¶
- device_index
- the index of the device to query
RETURN VALUE¶
Returns 1 if it has been opened, 0 if it hasn't or on failure; call
SDL_GetError () for more information.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_HapticIndex(3), SDL_HapticOpen(3)
SDL 3.0.0 | SDL |