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

SDL_HasMouse - Return whether a mouse is currently connected.

Defined in SDL3/SDL_mouse.h

#include "SDL3/SDL.h"
bool SDL_HasMouse(void);

Returns true if a mouse is connected, false otherwise.

This function should only be called on the main thread.

This function is available since SDL 3.2.0.

(3), SDL_GetMice(3)

SDL 3.2.10 Simple Directmedia Layer