DOKK / manpages / debian 13 / libsdl3-doc / SDL_OpenHapticFromMouse.3.en
SDL_OpenHapticFromMouse(3) SDL3 FUNCTIONS SDL_OpenHapticFromMouse(3)

SDL_OpenHapticFromMouse - Try to open a haptic device from the current mouse.

Defined in SDL3/SDL_haptic.h

#include "SDL3/SDL.h"
SDL_Haptic * SDL_OpenHapticFromMouse(void);

( SDL_Haptic
*) Returns the haptic device identifier or NULL on failure; call SDL_GetError () for more information.

This function is available since SDL 3.2.0.

(3), SDL_CloseHaptic(3), (3), SDL_IsMouseHaptic(3)

SDL 3.2.10 Simple Directmedia Layer