Function sdl2_sys::SDL_HapticOpened

source ·
pub unsafe extern "C" fn SDL_HapticOpened(
    device_index: c_int
) -> c_int
Expand description

Check if the haptic device at the designated index has been opened.

\param device_index the index of the device to query \returns 1 if it has been opened, 0 if it hasn’t or on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_HapticIndex \sa SDL_HapticOpen