openFromMouse static method

Pointer<SdlHaptic> openFromMouse()

Try to open a haptic device from the current mouse.

\returns the haptic device identifier or NULL on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

\sa SDL_CloseHaptic \sa SDL_IsMouseHaptic

extern SDL_DECLSPEC SDL_Haptic * SDLCALL SDL_OpenHapticFromMouse(void)

Implementation

static Pointer<SdlHaptic> openFromMouse() => sdlOpenHapticFromMouse();