mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 10:35:38 +00:00
Sync wiki -> header
This commit is contained in:
parent
b15e880e73
commit
a3648e26df
|
@ -211,18 +211,18 @@ extern DECLSPEC SDL_hid_device_info * SDLCALL SDL_hid_enumerate(unsigned short v
|
||||||
extern DECLSPEC void SDLCALL SDL_hid_free_enumeration(SDL_hid_device_info *devs);
|
extern DECLSPEC void SDLCALL SDL_hid_free_enumeration(SDL_hid_device_info *devs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open a HID device using a Vendor ID (VID), Product ID
|
* Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally
|
||||||
* (PID) and optionally a serial number.
|
* a serial number.
|
||||||
*
|
*
|
||||||
* If `serial_number` is NULL, the first device with the
|
* If `serial_number` is NULL, the first device with the specified VID and PID
|
||||||
* specified VID and PID is opened.
|
* is opened.
|
||||||
*
|
*
|
||||||
* \param vendor_id The Vendor ID (VID) of the device to open.
|
* \param vendor_id The Vendor ID (VID) of the device to open.
|
||||||
* \param product_id The Product ID (PID) of the device to open.
|
* \param product_id The Product ID (PID) of the device to open.
|
||||||
* \param serial_number The Serial Number of the device to open
|
* \param serial_number The Serial Number of the device to open (Optionally
|
||||||
* (Optionally NULL).
|
* NULL).
|
||||||
*
|
* \returns a pointer to a SDL_hid_device object on success or NULL on
|
||||||
* \returns a pointer to a SDL_hid_device object on success or NULL on failure.
|
* failure.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
|
@ -232,12 +232,11 @@ extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open(unsigned short vendor_id,
|
||||||
* Open a HID device by its path name.
|
* Open a HID device by its path name.
|
||||||
*
|
*
|
||||||
* The path name be determined by calling SDL_hid_enumerate(), or a
|
* The path name be determined by calling SDL_hid_enumerate(), or a
|
||||||
* platform-specific path name can be used (eg: /dev/hidraw0 on
|
* platform-specific path name can be used (eg: /dev/hidraw0 on Linux).
|
||||||
* Linux).
|
|
||||||
*
|
*
|
||||||
* \param path The path name of the device to open
|
* \param path The path name of the device to open
|
||||||
*
|
* \returns a pointer to a SDL_hid_device object on success or NULL on
|
||||||
* \returns a pointer to a SDL_hid_device object on success or NULL on failure.
|
* failure.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue