Man page - sdl_hid_get_report_descriptor(3)
Packages contas this manual
Manual
| SDL_hid_get_report_descriptor(3) | SDL3 FUNCTIONS | SDL_hid_get_report_descriptor(3) |
NAME
SDL_hid_get_report_descriptor - Get a report descriptor from a HID device.
HEADER FILE
Defined in SDL3/SDL_hidapi.h
SYNOPSIS
#include "SDL3/SDL.h"
int SDL_hid_get_report_descriptor(SDL_hid_device *dev, unsigned char *buf, size_t buf_size);
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
RETURN VALUE
Returns the number of bytes actually copied or -1 on failure; call
SDL_GetError () for more information.
AVAILABILITY
This function is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |