Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

Availability

       This function is available since SDL 3.2.0.

Header File

       Defined in SDL3/SDL_haptic.h

Name

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

Return Value

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

See Also

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

Simple Directmedia Layer                           SDL 3.2.10                         SDL_OpenHapticFromMouse(3)

Synopsis

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

See Also