sdlIsMouseHaptic function

bool sdlIsMouseHaptic()

Query whether or not the current mouse has haptic capabilities.

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

\since This function is available since SDL 3.1.3.

\sa SDL_OpenHapticFromMouse

extern SDL_DECLSPEC bool SDLCALL SDL_IsMouseHaptic(void)

Implementation

bool sdlIsMouseHaptic() {
  final sdlIsMouseHapticLookupFunction = libSdl3
      .lookupFunction<Uint8 Function(), int Function()>('SDL_IsMouseHaptic');
  return sdlIsMouseHapticLookupFunction() == 1;
}