Ubuntu Manpages

SDL_IsMouseHaptic

Query whether or not the current mouse has haptic capabilities.

#include <SDL3/SDL_haptic.h>
bool SDL_IsMouseHaptic(void);

Returns true if the mouse is haptic or false if it isn't.

This function is available since SDL 3.2.0.

SDL_OpenHapticFromMouse(3)