logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_hid_device_change_count - Check to see if devices may have been added or removed.

Availability

       This function is available since SDL 3.2.0.

Description

       Enumerating the HID devices is an expensive operation, so you can call this to see if there have been any
       system  device  changes  since  the  last call to this function. A change in the counter returned doesn't
       necessarily mean that anything has changed, but you can call

       SDL_hid_enumerate () to get an updated device list.

       Calling this function for the first time may cause a thread or other system resource to be  allocated  to
       track device change notifications.

Header File

       Defined in SDL3/SDL_hidapi.h

Name

       SDL_hid_device_change_count - Check to see if devices may have been added or removed.

Return Value

       ( Uint32 ) Returns a change counter that is incremented with each potential device change, or 0 if device
       change detection isn't available.

See Also

(3), SDL_hid_enumerate(3)

Simple Directmedia Layer                           SDL 3.2.10                     SDL_hid_device_change_count(3)

Synopsis

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

See Also