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_get_report_descriptor - Get a report descriptor from a HID device.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                   SDL_hid_get_report_descriptor(3)

Description

       User  has to provide a preallocated buffer where descriptor will be copied to. The recommended size for a
       preallocated buffer is 4096 bytes.

Function Parameters

dev    a device handle returned from SDL_hid_open().

       buf    the buffer to copy descriptor into.

       buf_size
              the size of the buffer in bytes.

Name

       SDL_hid_get_report_descriptor - Get a report descriptor from a HID device.

Return Value

       for more information.

Synopsis

#include<SDL3/SDL_hidapi.h>intSDL_hid_get_report_descriptor(SDL_hid_device*dev,unsignedchar*buf,size_tbuf_size);

See Also