SDL 3.0
SDL_hidapi.h
Go to the documentation of this file.
1/*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20*/
21
22/**
23 * \file SDL_hidapi.h
24 *
25 * \brief Header file for SDL HIDAPI functions.
26 *
27 * This is an adaptation of the original HIDAPI interface by Alan Ott,
28 * and includes source code licensed under the following BSD license:
29 *
30 Copyright (c) 2010, Alan Ott, Signal 11 Software
31 All rights reserved.
32
33 Redistribution and use in source and binary forms, with or without
34 modification, are permitted provided that the following conditions are met:
35
36 * Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
38 * Redistributions in binary form must reproduce the above copyright
39 notice, this list of conditions and the following disclaimer in the
40 documentation and/or other materials provided with the distribution.
41 * Neither the name of Signal 11 Software nor the names of its
42 contributors may be used to endorse or promote products derived from
43 this software without specific prior written permission.
44
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
46 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
47 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
48 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
49 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
50 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
51 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
52 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
53 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
55 POSSIBILITY OF SUCH DAMAGE.
56 *
57 * If you would like a version of SDL without this code, you can build SDL
58 * with SDL_HIDAPI_DISABLED defined to 1. You might want to do this for example
59 * on iOS or tvOS to avoid a dependency on the CoreBluetooth framework.
60 */
61
62#ifndef SDL_hidapi_h_
63#define SDL_hidapi_h_
64
65#include <SDL3/SDL_stdinc.h>
66
67#include <SDL3/SDL_begin_code.h>
68/* Set up for C function definitions, even when using C++ */
69#ifdef __cplusplus
70extern "C" {
71#endif
72
73/**
74 * \brief A handle representing an open HID device
75 */
76struct SDL_hid_device_;
77typedef struct SDL_hid_device_ SDL_hid_device; /**< opaque hidapi structure */
78
79/**
80 * \brief HID underlying bus types.
81 */
82typedef enum {
83 /** Unknown bus type */
85
86 /** USB bus
87 Specifications:
88 https://usb.org/hid */
90
91 /** Bluetooth or Bluetooth LE bus
92 Specifications:
93 https://www.bluetooth.com/specifications/specs/human-interface-device-profile-1-1-1/
94 https://www.bluetooth.com/specifications/specs/hid-service-1-0/
95 https://www.bluetooth.com/specifications/specs/hid-over-gatt-profile-1-0/ */
97
98 /** I2C bus
99 Specifications:
100 https://docs.microsoft.com/previous-versions/windows/hardware/design/dn642101(v=vs.85) */
102
103 /** SPI bus
104 Specifications:
105 https://www.microsoft.com/download/details.aspx?id=103325 */
107
109
110/** hidapi info structure */
111/**
112 * \brief Information about a connected HID device
113 */
115{
116 /** Platform-specific device path */
117 char *path;
118 /** Device Vendor ID */
119 unsigned short vendor_id;
120 /** Device Product ID */
121 unsigned short product_id;
122 /** Serial Number */
124 /** Device Release Number in binary-coded decimal,
125 also known as Device Version Number */
126 unsigned short release_number;
127 /** Manufacturer String */
129 /** Product string */
131 /** Usage Page for this Device/Interface
132 (Windows/Mac/hidraw only) */
133 unsigned short usage_page;
134 /** Usage for this Device/Interface
135 (Windows/Mac/hidraw only) */
136 unsigned short usage;
137 /** The USB interface which this logical device
138 represents.
139
140 Valid only if the device is a USB HID device.
141 Set to -1 in all other cases.
142 */
144
145 /** Additional information about the USB interface.
146 Valid on libusb and Android implementations. */
150
151 /** Underlying bus type */
153
154 /** Pointer to the next device */
156
158
159
160/**
161 * Initialize the HIDAPI library.
162 *
163 * This function initializes the HIDAPI library. Calling it is not strictly
164 * necessary, as it will be called automatically by SDL_hid_enumerate() and
165 * any of the SDL_hid_open_*() functions if it is needed. This function should
166 * be called at the beginning of execution however, if there is a chance of
167 * HIDAPI handles being opened by different threads simultaneously.
168 *
169 * Each call to this function should have a matching call to SDL_hid_exit()
170 *
171 * \returns 0 on success or a negative error code on failure; call
172 * SDL_GetError() for more information.
173 *
174 * \since This function is available since SDL 3.0.0.
175 *
176 * \sa SDL_hid_exit
177 */
178extern DECLSPEC int SDLCALL SDL_hid_init(void);
179
180/**
181 * Finalize the HIDAPI library.
182 *
183 * This function frees all of the static data associated with HIDAPI. It
184 * should be called at the end of execution to avoid memory leaks.
185 *
186 * \returns 0 on success or a negative error code on failure; call
187 * SDL_GetError() for more information.
188 *
189 * \since This function is available since SDL 3.0.0.
190 *
191 * \sa SDL_hid_init
192 */
193extern DECLSPEC int SDLCALL SDL_hid_exit(void);
194
195/**
196 * Check to see if devices may have been added or removed.
197 *
198 * Enumerating the HID devices is an expensive operation, so you can call this
199 * to see if there have been any system device changes since the last call to
200 * this function. A change in the counter returned doesn't necessarily mean
201 * that anything has changed, but you can call SDL_hid_enumerate() to get an
202 * updated device list.
203 *
204 * Calling this function for the first time may cause a thread or other system
205 * resource to be allocated to track device change notifications.
206 *
207 * \returns a change counter that is incremented with each potential device
208 * change, or 0 if device change detection isn't available.
209 *
210 * \since This function is available since SDL 3.0.0.
211 *
212 * \sa SDL_hid_enumerate
213 */
214extern DECLSPEC Uint32 SDLCALL SDL_hid_device_change_count(void);
215
216/**
217 * Enumerate the HID Devices.
218 *
219 * This function returns a linked list of all the HID devices attached to the
220 * system which match vendor_id and product_id. If `vendor_id` is set to 0
221 * then any vendor matches. If `product_id` is set to 0 then any product
222 * matches. If `vendor_id` and `product_id` are both set to 0, then all HID
223 * devices will be returned.
224 *
225 * By default SDL will only enumerate controllers, to reduce risk of hanging
226 * or crashing on bad drivers, but SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS
227 * can be set to "0" to enumerate all HID devices.
228 *
229 * \param vendor_id The Vendor ID (VID) of the types of device to open, or 0
230 * to match any vendor.
231 * \param product_id The Product ID (PID) of the types of device to open, or 0
232 * to match any product.
233 * \returns a pointer to a linked list of type SDL_hid_device_info, containing
234 * information about the HID devices attached to the system, or NULL
235 * in the case of failure. Free this linked list by calling
236 * SDL_hid_free_enumeration().
237 *
238 * \since This function is available since SDL 3.0.0.
239 *
240 * \sa SDL_hid_device_change_count
241 */
242extern DECLSPEC SDL_hid_device_info * SDLCALL SDL_hid_enumerate(unsigned short vendor_id, unsigned short product_id);
243
244/**
245 * Free an enumeration Linked List
246 *
247 * This function frees a linked list created by SDL_hid_enumerate().
248 *
249 * \param devs Pointer to a list of struct_device returned from
250 * SDL_hid_enumerate().
251 *
252 * \since This function is available since SDL 3.0.0.
253 */
254extern DECLSPEC void SDLCALL SDL_hid_free_enumeration(SDL_hid_device_info *devs);
255
256/**
257 * Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally
258 * a serial number.
259 *
260 * If `serial_number` is NULL, the first device with the specified VID and PID
261 * is opened.
262 *
263 * \param vendor_id The Vendor ID (VID) of the device to open.
264 * \param product_id The Product ID (PID) of the device to open.
265 * \param serial_number The Serial Number of the device to open (Optionally
266 * NULL).
267 * \returns a pointer to a SDL_hid_device object on success or NULL on
268 * failure.
269 *
270 * \since This function is available since SDL 3.0.0.
271 */
272extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number);
273
274/**
275 * Open a HID device by its path name.
276 *
277 * The path name be determined by calling SDL_hid_enumerate(), or a
278 * platform-specific path name can be used (eg: /dev/hidraw0 on Linux).
279 *
280 * \param path The path name of the device to open
281 * \returns a pointer to a SDL_hid_device object on success or NULL on
282 * failure.
283 *
284 * \since This function is available since SDL 3.0.0.
285 */
286extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open_path(const char *path);
287
288/**
289 * Write an Output report to a HID device.
290 *
291 * The first byte of `data` must contain the Report ID. For devices which only
292 * support a single report, this must be set to 0x0. The remaining bytes
293 * contain the report data. Since the Report ID is mandatory, calls to
294 * SDL_hid_write() will always contain one more byte than the report contains.
295 * For example, if a hid report is 16 bytes long, 17 bytes must be passed to
296 * SDL_hid_write(), the Report ID (or 0x0, for devices with a single report),
297 * followed by the report data (16 bytes). In this example, the length passed
298 * in would be 17.
299 *
300 * SDL_hid_write() will send the data on the first OUT endpoint, if one
301 * exists. If it does not, it will send the data through the Control Endpoint
302 * (Endpoint 0).
303 *
304 * \param dev A device handle returned from SDL_hid_open().
305 * \param data The data to send, including the report number as the first
306 * byte.
307 * \param length The length in bytes of the data to send.
308 * \returns the actual number of bytes written and -1 on error.
309 *
310 * \since This function is available since SDL 3.0.0.
311 */
312extern DECLSPEC int SDLCALL SDL_hid_write(SDL_hid_device *dev, const unsigned char *data, size_t length);
313
314/**
315 * Read an Input report from a HID device with timeout.
316 *
317 * Input reports are returned to the host through the INTERRUPT IN endpoint.
318 * The first byte will contain the Report number if the device uses numbered
319 * reports.
320 *
321 * \param dev A device handle returned from SDL_hid_open().
322 * \param data A buffer to put the read data into.
323 * \param length The number of bytes to read. For devices with multiple
324 * reports, make sure to read an extra byte for the report
325 * number.
326 * \param milliseconds timeout in milliseconds or -1 for blocking wait.
327 * \returns the actual number of bytes read and -1 on error. If no packet was
328 * available to be read within the timeout period, this function
329 * returns 0.
330 *
331 * \since This function is available since SDL 3.0.0.
332 */
333extern DECLSPEC int SDLCALL SDL_hid_read_timeout(SDL_hid_device *dev, unsigned char *data, size_t length, int milliseconds);
334
335/**
336 * Read an Input report from a HID device.
337 *
338 * Input reports are returned to the host through the INTERRUPT IN endpoint.
339 * The first byte will contain the Report number if the device uses numbered
340 * reports.
341 *
342 * \param dev A device handle returned from SDL_hid_open().
343 * \param data A buffer to put the read data into.
344 * \param length The number of bytes to read. For devices with multiple
345 * reports, make sure to read an extra byte for the report
346 * number.
347 * \returns the actual number of bytes read and -1 on error. If no packet was
348 * available to be read and the handle is in non-blocking mode, this
349 * function returns 0.
350 *
351 * \since This function is available since SDL 3.0.0.
352 */
353extern DECLSPEC int SDLCALL SDL_hid_read(SDL_hid_device *dev, unsigned char *data, size_t length);
354
355/**
356 * Set the device handle to be non-blocking.
357 *
358 * In non-blocking mode calls to SDL_hid_read() will return immediately with a
359 * value of 0 if there is no data to be read. In blocking mode, SDL_hid_read()
360 * will wait (block) until there is data to read before returning.
361 *
362 * Nonblocking can be turned on and off at any time.
363 *
364 * \param dev A device handle returned from SDL_hid_open().
365 * \param nonblock enable or not the nonblocking reads - 1 to enable
366 * nonblocking - 0 to disable nonblocking.
367 * \returns 0 on success or a negative error code on failure; call
368 * SDL_GetError() for more information.
369 *
370 * \since This function is available since SDL 3.0.0.
371 */
372extern DECLSPEC int SDLCALL SDL_hid_set_nonblocking(SDL_hid_device *dev, int nonblock);
373
374/**
375 * Send a Feature report to the device.
376 *
377 * Feature reports are sent over the Control endpoint as a Set_Report
378 * transfer. The first byte of `data` must contain the Report ID. For devices
379 * which only support a single report, this must be set to 0x0. The remaining
380 * bytes contain the report data. Since the Report ID is mandatory, calls to
381 * SDL_hid_send_feature_report() will always contain one more byte than the
382 * report contains. For example, if a hid report is 16 bytes long, 17 bytes
383 * must be passed to SDL_hid_send_feature_report(): the Report ID (or 0x0, for
384 * devices which do not use numbered reports), followed by the report data (16
385 * bytes). In this example, the length passed in would be 17.
386 *
387 * \param dev A device handle returned from SDL_hid_open().
388 * \param data The data to send, including the report number as the first
389 * byte.
390 * \param length The length in bytes of the data to send, including the report
391 * number.
392 * \returns the actual number of bytes written and -1 on error.
393 *
394 * \since This function is available since SDL 3.0.0.
395 */
396extern DECLSPEC int SDLCALL SDL_hid_send_feature_report(SDL_hid_device *dev, const unsigned char *data, size_t length);
397
398/**
399 * Get a feature report from a HID device.
400 *
401 * Set the first byte of `data` to the Report ID of the report to be read.
402 * Make sure to allow space for this extra byte in `data`. Upon return, the
403 * first byte will still contain the Report ID, and the report data will start
404 * in data[1].
405 *
406 * \param dev A device handle returned from SDL_hid_open().
407 * \param data A buffer to put the read data into, including the Report ID.
408 * Set the first byte of `data` to the Report ID of the report to
409 * be read, or set it to zero if your device does not use numbered
410 * reports.
411 * \param length The number of bytes to read, including an extra byte for the
412 * report ID. The buffer can be longer than the actual report.
413 * \returns the number of bytes read plus one for the report ID (which is
414 * still in the first byte), or -1 on error.
415 *
416 * \since This function is available since SDL 3.0.0.
417 */
418extern DECLSPEC int SDLCALL SDL_hid_get_feature_report(SDL_hid_device *dev, unsigned char *data, size_t length);
419
420/**
421 * Get an input report from a HID device.
422 *
423 * Set the first byte of `data` to the Report ID of the report to be read.
424 * Make sure to allow space for this extra byte in `data`. Upon return, the
425 * first byte will still contain the Report ID, and the report data will start
426 * in data[1].
427 *
428 * \param dev A device handle returned from SDL_hid_open().
429 * \param data A buffer to put the read data into, including the Report ID.
430 * Set the first byte of `data` to the Report ID of the report to
431 * be read, or set it to zero if your device does not use numbered
432 * reports.
433 * \param length The number of bytes to read, including an extra byte for the
434 * report ID. The buffer can be longer than the actual report.
435 * \returns the number of bytes read plus one for the report ID (which is
436 * still in the first byte), or -1 on error.
437 *
438 * \since This function is available since SDL 3.0.0.
439 */
440extern DECLSPEC int SDLCALL SDL_hid_get_input_report(SDL_hid_device *dev, unsigned char *data, size_t length);
441
442/**
443 * Close a HID device.
444 *
445 * \param dev A device handle returned from SDL_hid_open().
446 * \returns 0 on success or a negative error code on failure; call
447 * SDL_GetError() for more information.
448 *
449 * \since This function is available since SDL 3.0.0.
450 */
451extern DECLSPEC int SDLCALL SDL_hid_close(SDL_hid_device *dev);
452
453/**
454 * Get The Manufacturer String from a HID device.
455 *
456 * \param dev A device handle returned from SDL_hid_open().
457 * \param string A wide string buffer to put the data into.
458 * \param maxlen The length of the buffer in multiples of wchar_t.
459 * \returns 0 on success or a negative error code on failure; call
460 * SDL_GetError() for more information.
461 *
462 * \since This function is available since SDL 3.0.0.
463 */
464extern DECLSPEC int SDLCALL SDL_hid_get_manufacturer_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
465
466/**
467 * Get The Product String from a HID device.
468 *
469 * \param dev A device handle returned from SDL_hid_open().
470 * \param string A wide string buffer to put the data into.
471 * \param maxlen The length of the buffer in multiples of wchar_t.
472 * \returns 0 on success or a negative error code on failure; call
473 * SDL_GetError() for more information.
474 *
475 * \since This function is available since SDL 3.0.0.
476 */
477extern DECLSPEC int SDLCALL SDL_hid_get_product_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
478
479/**
480 * Get The Serial Number String from a HID device.
481 *
482 * \param dev A device handle returned from SDL_hid_open().
483 * \param string A wide string buffer to put the data into.
484 * \param maxlen The length of the buffer in multiples of wchar_t.
485 * \returns 0 on success or a negative error code on failure; call
486 * SDL_GetError() for more information.
487 *
488 * \since This function is available since SDL 3.0.0.
489 */
490extern DECLSPEC int SDLCALL SDL_hid_get_serial_number_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen);
491
492/**
493 * Get a string from a HID device, based on its string index.
494 *
495 * \param dev A device handle returned from SDL_hid_open().
496 * \param string_index The index of the string to get.
497 * \param string A wide string buffer to put the data into.
498 * \param maxlen The length of the buffer in multiples of wchar_t.
499 * \returns 0 on success or a negative error code on failure; call
500 * SDL_GetError() for more information.
501 *
502 * \since This function is available since SDL 3.0.0.
503 */
504extern DECLSPEC int SDLCALL SDL_hid_get_indexed_string(SDL_hid_device *dev, int string_index, wchar_t *string, size_t maxlen);
505
506/**
507 * Get the device info from a HID device.
508 *
509 * \param dev A device handle returned from SDL_hid_open().
510 * \returns a pointer to the SDL_hid_device_info for this hid_device, or NULL
511 * in the case of failure; call SDL_GetError() for more information.
512 * This struct is valid until the device is closed with
513 * SDL_hid_close().
514 *
515 * \since This function is available since SDL 3.0.0.
516 */
518
519/**
520 * Get a report descriptor from a HID device.
521 *
522 * User has to provide a preallocated buffer where descriptor will be copied
523 * to. The recommended size for a preallocated buffer is 4096 bytes.
524 *
525 * \param dev A device handle returned from SDL_hid_open().
526 * \param buf The buffer to copy descriptor into.
527 * \param buf_size The size of the buffer in bytes.
528 * \returns the number of bytes actually copied, or -1 on error; call
529 * SDL_GetError() for more information.
530 *
531 * \since This function is available since SDL 3.0.0.
532 */
533extern DECLSPEC int SDLCALL SDL_hid_get_report_descriptor(SDL_hid_device *dev, unsigned char *buf, size_t buf_size);
534
535/**
536 * Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers
537 *
538 * \param active SDL_TRUE to start the scan, SDL_FALSE to stop the scan
539 *
540 * \since This function is available since SDL 3.0.0.
541 */
542extern DECLSPEC void SDLCALL SDL_hid_ble_scan(SDL_bool active);
543
544/* Ends C function definitions when using C++ */
545#ifdef __cplusplus
546}
547#endif
548#include <SDL3/SDL_close_code.h>
549
550#endif /* SDL_hidapi_h_ */
struct SDL_hid_device_ SDL_hid_device
Definition: SDL_hidapi.h:77
SDL_hid_device * SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
int SDL_hid_init(void)
void SDL_hid_ble_scan(SDL_bool active)
int SDL_hid_get_product_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
int SDL_hid_get_report_descriptor(SDL_hid_device *dev, unsigned char *buf, size_t buf_size)
int SDL_hid_read(SDL_hid_device *dev, unsigned char *data, size_t length)
int SDL_hid_close(SDL_hid_device *dev)
Uint32 SDL_hid_device_change_count(void)
SDL_hid_bus_type
HID underlying bus types.
Definition: SDL_hidapi.h:82
@ SDL_HID_API_BUS_SPI
Definition: SDL_hidapi.h:106
@ SDL_HID_API_BUS_I2C
Definition: SDL_hidapi.h:101
@ SDL_HID_API_BUS_UNKNOWN
Definition: SDL_hidapi.h:84
@ SDL_HID_API_BUS_BLUETOOTH
Definition: SDL_hidapi.h:96
@ SDL_HID_API_BUS_USB
Definition: SDL_hidapi.h:89
int SDL_hid_exit(void)
int SDL_hid_get_feature_report(SDL_hid_device *dev, unsigned char *data, size_t length)
SDL_hid_device * SDL_hid_open_path(const char *path)
int SDL_hid_get_serial_number_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
int SDL_hid_get_manufacturer_string(SDL_hid_device *dev, wchar_t *string, size_t maxlen)
void SDL_hid_free_enumeration(SDL_hid_device_info *devs)
int SDL_hid_get_input_report(SDL_hid_device *dev, unsigned char *data, size_t length)
int SDL_hid_get_indexed_string(SDL_hid_device *dev, int string_index, wchar_t *string, size_t maxlen)
SDL_hid_device_info * SDL_hid_enumerate(unsigned short vendor_id, unsigned short product_id)
int SDL_hid_write(SDL_hid_device *dev, const unsigned char *data, size_t length)
int SDL_hid_send_feature_report(SDL_hid_device *dev, const unsigned char *data, size_t length)
SDL_hid_device_info * SDL_hid_get_device_info(SDL_hid_device *dev)
int SDL_hid_set_nonblocking(SDL_hid_device *dev, int nonblock)
int SDL_hid_read_timeout(SDL_hid_device *dev, unsigned char *data, size_t length, int milliseconds)
This is a general header that includes C language support.
SDL_bool
Definition: SDL_stdinc.h:130
uint32_t Uint32
Definition: SDL_stdinc.h:171
Information about a connected HID device.
Definition: SDL_hidapi.h:115
unsigned short product_id
Definition: SDL_hidapi.h:121
unsigned short vendor_id
Definition: SDL_hidapi.h:119
wchar_t * product_string
Definition: SDL_hidapi.h:130
SDL_hid_bus_type bus_type
Definition: SDL_hidapi.h:152
struct SDL_hid_device_info * next
Definition: SDL_hidapi.h:155
unsigned short usage
Definition: SDL_hidapi.h:136
wchar_t * manufacturer_string
Definition: SDL_hidapi.h:128
unsigned short usage_page
Definition: SDL_hidapi.h:133
unsigned short release_number
Definition: SDL_hidapi.h:126
wchar_t * serial_number
Definition: SDL_hidapi.h:123