SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables

Header file for SDL HIDAPI functions. More...

Collaboration diagram for HIDAPI:

Classes

struct  SDL::HidDeviceParam
 Safely wrap HidDevice for non owning parameters. More...
 
class  SDL::HidDevice
 An opaque handle representing an open HID device. More...
 
struct  SDL::HidDeviceRef
 Semi-safe reference for HidDevice. More...
 

Typedefs

using SDL::HidDeviceRaw = SDL_hid_device *
 Alias to raw representation for HidDevice.
 
using SDL::hid_bus_type = SDL_hid_bus_type
 HID underlying bus types. More...
 
using SDL::hid_device_info = SDL_hid_device_info
 Information about a connected HID device. More...
 

Functions

void SDL::hid_init ()
 Initialize the HIDAPI library. More...
 
void SDL::hid_exit ()
 Finalize the HIDAPI library. More...
 
Uint32 SDL::hid_device_change_count ()
 Check to see if devices may have been added or removed. More...
 
hid_device_infoSDL::hid_enumerate (unsigned short vendor_id, unsigned short product_id)
 Enumerate the HID Devices. More...
 
void SDL::hid_free_enumeration (hid_device_info *devs)
 Free an enumeration linked list. More...
 
HidDevice SDL::hid_open (unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number)
 Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally a serial number. More...
 
HidDevice SDL::hid_open_path (StringParam path)
 Open a HID device by its path name. More...
 
int SDL::hid_write (HidDeviceParam dev, SourceBytes data)
 Write an Output report to a HID device. More...
 
int SDL::hid_read_timeout (HidDeviceParam dev, TargetBytes data, Milliseconds timeout)
 Read an Input report from a HID device with timeout. More...
 
int SDL::hid_read (HidDeviceParam dev, TargetBytes data)
 Read an Input report from a HID device. More...
 
void SDL::hid_set_nonblocking (HidDeviceParam dev, bool nonblock)
 Set the device handle to be non-blocking. More...
 
int SDL::hid_send_feature_report (HidDeviceParam dev, SourceBytes data)
 Send a Feature report to the device. More...
 
int SDL::hid_get_feature_report (HidDeviceParam dev, TargetBytes data)
 Get a feature report from a HID device. More...
 
int SDL::hid_get_input_report (HidDeviceParam dev, TargetBytes data)
 Get an input report from a HID device. More...
 
void SDL::hid_close (HidDeviceRaw dev)
 Close a HID device. More...
 
void SDL::hid_get_manufacturer_string (HidDeviceParam dev, wchar_t *string, size_t maxlen)
 Get The Manufacturer String from a HID device. More...
 
void SDL::hid_get_product_string (HidDeviceParam dev, wchar_t *string, size_t maxlen)
 Get The Product String from a HID device. More...
 
void SDL::hid_get_serial_number_string (HidDeviceParam dev, wchar_t *string, size_t maxlen)
 Get The Serial Number String from a HID device. More...
 
void SDL::hid_get_indexed_string (HidDeviceParam dev, int string_index, wchar_t *string, size_t maxlen)
 Get a string from a HID device, based on its string index. More...
 
hid_device_infoSDL::hid_get_device_info (HidDeviceParam dev)
 Get the device info from a HID device. More...
 
int SDL::hid_get_report_descriptor (HidDeviceParam dev, TargetBytes buf)
 Get a report descriptor from a HID device. More...
 
void SDL::hid_ble_scan (bool active)
 Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers. More...
 
int SDL::HidDevice::write (SourceBytes data)
 Write an Output report to a HID device. More...
 
int SDL::HidDevice::read_timeout (TargetBytes data, Milliseconds timeout)
 Read an Input report from a HID device with timeout. More...
 
int SDL::HidDevice::read (TargetBytes data)
 Read an Input report from a HID device. More...
 
void SDL::HidDevice::set_nonblocking (bool nonblock)
 Set the device handle to be non-blocking. More...
 
int SDL::HidDevice::send_feature_report (SourceBytes data)
 Send a Feature report to the device. More...
 
int SDL::HidDevice::get_feature_report (TargetBytes data)
 Get a feature report from a HID device. More...
 
int SDL::HidDevice::get_input_report (TargetBytes data)
 Get an input report from a HID device. More...
 
void SDL::HidDevice::close ()
 Close a HID device. More...
 
void SDL::HidDevice::get_manufacturer_string (wchar_t *string, size_t maxlen)
 Get The Manufacturer String from a HID device. More...
 
void SDL::HidDevice::get_product_string (wchar_t *string, size_t maxlen)
 Get The Product String from a HID device. More...
 
void SDL::HidDevice::get_serial_number_string (wchar_t *string, size_t maxlen)
 Get The Serial Number String from a HID device. More...
 
void SDL::HidDevice::get_indexed_string (int string_index, wchar_t *string, size_t maxlen)
 Get a string from a HID device, based on its string index. More...
 
hid_device_infoSDL::HidDevice::get_device_info ()
 Get the device info from a HID device. More...
 
int SDL::HidDevice::get_report_descriptor (TargetBytes buf)
 Get a report descriptor from a HID device. More...
 

Variables

constexpr hid_bus_type SDL::HID_API_BUS_UNKNOWN
 Unknown bus type. More...
 
constexpr hid_bus_type SDL::HID_API_BUS_USB
 [object Object] More...
 
constexpr hid_bus_type SDL::HID_API_BUS_BLUETOOTH
 [object Object] More...
 
constexpr hid_bus_type SDL::HID_API_BUS_I2C
 [object Object] More...
 
constexpr hid_bus_type SDL::HID_API_BUS_SPI
 [object Object] More...
 

Detailed Description

This is an adaptation of the original HIDAPI interface by Alan Ott, and includes source code licensed under the following license:

HIDAPI - Multi-Platform library for
communication with HID devices.
Copyright 2009, Alan Ott, Signal 11 Software.
All Rights Reserved.
This software may be used by anyone for any reason so
long as the copyright notice in the source files
remains intact.

(Note that this license is the same as item three of SDL's zlib license, so it adds no new requirements on the user.)

If you would like a version of SDL without this code, you can build SDL with SDL_HIDAPI_DISABLED defined to 1. You might want to do this for example on iOS or tvOS to avoid a dependency on the CoreBluetooth framework.

Typedef Documentation

◆ hid_bus_type

using SDL::hid_bus_type = typedef SDL_hid_bus_type
Since
This enum is available since SDL 3.2.0.

◆ hid_device_info

using SDL::hid_device_info = typedef SDL_hid_device_info
Since
This struct is available since SDL 3.2.0.

Function Documentation

◆ close()

void SDL::HidDevice::close ( )
inline
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ get_device_info()

hid_device_info * SDL::HidDevice::get_device_info ( )
inline
Returns
a pointer to the hid_device_info for this hid_device on success. This struct is valid until the device is closed with HidDevice.close().
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ get_feature_report()

int SDL::HidDevice::get_feature_report ( TargetBytes  data)
inline

Set the first byte of data to the Report ID of the report to be read. Make sure to allow space for this extra byte in data. Upon return, the first byte will still contain the Report ID, and the report data will start in data[1].

Parameters
dataa buffer to put the read data into, including the Report ID. Set the first byte of data to the Report ID of the report to be read, or set it to zero if your device does not use numbered reports.
Returns
the number of bytes read plus one for the report ID (which is still in the first byte), or -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ get_indexed_string()

void SDL::HidDevice::get_indexed_string ( int  string_index,
wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
string_indexthe index of the string to get.
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ get_input_report()

int SDL::HidDevice::get_input_report ( TargetBytes  data)
inline

Set the first byte of data to the Report ID of the report to be read. Make sure to allow space for this extra byte in data. Upon return, the first byte will still contain the Report ID, and the report data will start in data[1].

Parameters
dataa buffer to put the read data into, including the Report ID. Set the first byte of data to the Report ID of the report to be read, or set it to zero if your device does not use numbered reports.
Returns
the number of bytes read plus one for the report ID (which is still in the first byte), or -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ get_manufacturer_string()

void SDL::HidDevice::get_manufacturer_string ( wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ get_product_string()

void SDL::HidDevice::get_product_string ( wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ get_report_descriptor()

int SDL::HidDevice::get_report_descriptor ( TargetBytes  buf)
inline

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

Parameters
bufthe buffer to copy descriptor into.
Returns
the number of bytes actually copied or -1 on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ get_serial_number_string()

void SDL::HidDevice::get_serial_number_string ( wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_ble_scan()

void SDL::hid_ble_scan ( bool  active)
inline
Parameters
activetrue to start the scan, false to stop the scan.
Since
This function is available since SDL 3.2.0.

◆ hid_close()

void SDL::hid_close ( HidDeviceRaw  dev)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_device_change_count()

Uint32 SDL::hid_device_change_count ( )
inline

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 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.

Returns
a change counter that is incremented with each potential device change, or 0 if device change detection isn't available.
Since
This function is available since SDL 3.2.0.
See also
hid_enumerate

◆ hid_enumerate()

hid_device_info * SDL::hid_enumerate ( unsigned short  vendor_id,
unsigned short  product_id 
)
inline

This function returns a linked list of all the HID devices attached to the system which match vendor_id and product_id. If vendor_id is set to 0 then any vendor matches. If product_id is set to 0 then any product matches. If vendor_id and product_id are both set to 0, then all HID devices will be returned.

By default SDL will only enumerate controllers, to reduce risk of hanging or crashing on bad drivers, but SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS can be set to "0" to enumerate all HID devices.

Parameters
vendor_idthe Vendor ID (VID) of the types of device to open, or 0 to match any vendor.
product_idthe Product ID (PID) of the types of device to open, or 0 to match any product.
Returns
a pointer to a linked list of type hid_device_info, containing information about the HID devices attached to the system on success. Free this linked list by calling hid_free_enumeration().
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.
See also
hid_device_change_count

◆ hid_exit()

void SDL::hid_exit ( )
inline

This function frees all of the static data associated with HIDAPI. It should be called at the end of execution to avoid memory leaks.

Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.
See also
hid_init

◆ hid_free_enumeration()

void SDL::hid_free_enumeration ( hid_device_info devs)
inline

This function frees a linked list created by hid_enumerate().

Parameters
devspointer to a list of struct_device returned from hid_enumerate().
Since
This function is available since SDL 3.2.0.

◆ hid_get_device_info()

hid_device_info * SDL::hid_get_device_info ( HidDeviceParam  dev)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
Returns
a pointer to the hid_device_info for this hid_device on success. This struct is valid until the device is closed with HidDevice.close().
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_get_feature_report()

int SDL::hid_get_feature_report ( HidDeviceParam  dev,
TargetBytes  data 
)
inline

Set the first byte of data to the Report ID of the report to be read. Make sure to allow space for this extra byte in data. Upon return, the first byte will still contain the Report ID, and the report data will start in data[1].

Parameters
deva device handle returned from HidDevice.HidDevice().
dataa buffer to put the read data into, including the Report ID. Set the first byte of data to the Report ID of the report to be read, or set it to zero if your device does not use numbered reports.
Returns
the number of bytes read plus one for the report ID (which is still in the first byte), or -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ hid_get_indexed_string()

void SDL::hid_get_indexed_string ( HidDeviceParam  dev,
int  string_index,
wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
string_indexthe index of the string to get.
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_get_input_report()

int SDL::hid_get_input_report ( HidDeviceParam  dev,
TargetBytes  data 
)
inline

Set the first byte of data to the Report ID of the report to be read. Make sure to allow space for this extra byte in data. Upon return, the first byte will still contain the Report ID, and the report data will start in data[1].

Parameters
deva device handle returned from HidDevice.HidDevice().
dataa buffer to put the read data into, including the Report ID. Set the first byte of data to the Report ID of the report to be read, or set it to zero if your device does not use numbered reports.
Returns
the number of bytes read plus one for the report ID (which is still in the first byte), or -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ hid_get_manufacturer_string()

void SDL::hid_get_manufacturer_string ( HidDeviceParam  dev,
wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_get_product_string()

void SDL::hid_get_product_string ( HidDeviceParam  dev,
wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_get_report_descriptor()

int SDL::hid_get_report_descriptor ( HidDeviceParam  dev,
TargetBytes  buf 
)
inline

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

Parameters
deva device handle returned from HidDevice.HidDevice().
bufthe buffer to copy descriptor into.
Returns
the number of bytes actually copied or -1 on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ hid_get_serial_number_string()

void SDL::hid_get_serial_number_string ( HidDeviceParam  dev,
wchar_t *  string,
size_t  maxlen 
)
inline
Parameters
deva device handle returned from HidDevice.HidDevice().
stringa wide string buffer to put the data into.
maxlenthe length of the buffer in multiples of wchar_t.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_init()

void SDL::hid_init ( )
inline

This function initializes the HIDAPI library. Calling it is not strictly necessary, as it will be called automatically by hid_enumerate() and any of the SDL_hid_open_*() functions if it is needed. This function should be called at the beginning of execution however, if there is a chance of HIDAPI handles being opened by different threads simultaneously.

Each call to this function should have a matching call to hid_exit()

Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.
See also
hid_exit

◆ hid_open()

HidDevice SDL::hid_open ( unsigned short  vendor_id,
unsigned short  product_id,
const wchar_t *  serial_number 
)
inline

If serial_number is nullptr, the first device with the specified VID and PID is opened.

Parameters
vendor_idthe Vendor ID (VID) of the device to open.
product_idthe Product ID (PID) of the device to open.
serial_numberthe Serial Number of the device to open (Optionally nullptr).
Returns
a HidDevice object on success.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_open_path()

HidDevice SDL::hid_open_path ( StringParam  path)
inline

The path name be determined by calling hid_enumerate(), or a platform-specific path name can be used (eg: /dev/hidraw0 on Linux).

Parameters
paththe path name of the device to open.
Returns
a HidDevice object on success.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_read()

int SDL::hid_read ( HidDeviceParam  dev,
TargetBytes  data 
)
inline

Input reports are returned to the host through the INTERRUPT IN endpoint. The first byte will contain the Report number if the device uses numbered reports.

Parameters
deva device handle returned from HidDevice.HidDevice().
dataa buffer to put the read data into.
Returns
the actual number of bytes read and -1 on failure; call GetError() for more information. If no packet was available to be read and the handle is in non-blocking mode, this function returns 0.
Since
This function is available since SDL 3.2.0.

◆ hid_read_timeout()

int SDL::hid_read_timeout ( HidDeviceParam  dev,
TargetBytes  data,
Milliseconds  timeout 
)
inline

Input reports are returned to the host through the INTERRUPT IN endpoint. The first byte will contain the Report number if the device uses numbered reports.

Parameters
deva device handle returned from HidDevice.HidDevice().
dataa buffer to put the read data into.
timeouttimeout in milliseconds
Returns
the actual number of bytes read and -1 on on failure; call GetError() for more information. If no packet was available to be read within the timeout period, this function returns 0.
Since
This function is available since SDL 3.2.0.

◆ hid_send_feature_report()

int SDL::hid_send_feature_report ( HidDeviceParam  dev,
SourceBytes  data 
)
inline

Feature reports are sent over the Control endpoint as a Set_Report transfer. The first byte of data must contain the Report ID. For devices which only support a single report, this must be set to 0x0. The remaining bytes contain the report data. Since the Report ID is mandatory, calls to HidDevice.send_feature_report() will always contain one more byte than the report contains. For example, if a hid report is 16 bytes long, 17 bytes must be passed to HidDevice.send_feature_report(): the Report ID (or 0x0, for devices which do not use numbered reports), followed by the report data (16 bytes). In this example, the length passed in would be 17.

Parameters
deva device handle returned from HidDevice.HidDevice().
datathe data to send, including the report number as the first byte.
Returns
the actual number of bytes written and -1 on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ hid_set_nonblocking()

void SDL::hid_set_nonblocking ( HidDeviceParam  dev,
bool  nonblock 
)
inline

In non-blocking mode calls to HidDevice.read() will return immediately with a value of 0 if there is no data to be read. In blocking mode, HidDevice.read() will wait (block) until there is data to read before returning.

Nonblocking can be turned on and off at any time.

Parameters
deva device handle returned from HidDevice.HidDevice().
nonblockenable or not the nonblocking reads - true to enable nonblocking - false to disable nonblocking.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ hid_write()

int SDL::hid_write ( HidDeviceParam  dev,
SourceBytes  data 
)
inline

The first byte of data must contain the Report ID. For devices which only support a single report, this must be set to 0x0. The remaining bytes contain the report data. Since the Report ID is mandatory, calls to HidDevice.write() will always contain one more byte than the report contains. For example, if a hid report is 16 bytes long, 17 bytes must be passed to HidDevice.write(), the Report ID (or 0x0, for devices with a single report), followed by the report data (16 bytes). In this example, the length passed in would be 17.

HidDevice.write() will send the data on the first OUT endpoint, if one exists. If it does not, it will send the data through the Control Endpoint (Endpoint 0).

Parameters
deva device handle returned from HidDevice.HidDevice().
datathe data to send, including the report number as the first byte.
Returns
the actual number of bytes written and -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ read()

int SDL::HidDevice::read ( TargetBytes  data)
inline

Input reports are returned to the host through the INTERRUPT IN endpoint. The first byte will contain the Report number if the device uses numbered reports.

Parameters
dataa buffer to put the read data into.
Returns
the actual number of bytes read and -1 on failure; call GetError() for more information. If no packet was available to be read and the handle is in non-blocking mode, this function returns 0.
Since
This function is available since SDL 3.2.0.

◆ read_timeout()

int SDL::HidDevice::read_timeout ( TargetBytes  data,
Milliseconds  timeout 
)
inline

Input reports are returned to the host through the INTERRUPT IN endpoint. The first byte will contain the Report number if the device uses numbered reports.

Parameters
dataa buffer to put the read data into.
timeouttimeout in milliseconds
Returns
the actual number of bytes read and -1 on on failure; call GetError() for more information. If no packet was available to be read within the timeout period, this function returns 0.
Since
This function is available since SDL 3.2.0.

◆ send_feature_report()

int SDL::HidDevice::send_feature_report ( SourceBytes  data)
inline

Feature reports are sent over the Control endpoint as a Set_Report transfer. The first byte of data must contain the Report ID. For devices which only support a single report, this must be set to 0x0. The remaining bytes contain the report data. Since the Report ID is mandatory, calls to HidDevice.send_feature_report() will always contain one more byte than the report contains. For example, if a hid report is 16 bytes long, 17 bytes must be passed to HidDevice.send_feature_report(): the Report ID (or 0x0, for devices which do not use numbered reports), followed by the report data (16 bytes). In this example, the length passed in would be 17.

Parameters
datathe data to send, including the report number as the first byte.
Returns
the actual number of bytes written and -1 on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

◆ set_nonblocking()

void SDL::HidDevice::set_nonblocking ( bool  nonblock)
inline

In non-blocking mode calls to HidDevice.read() will return immediately with a value of 0 if there is no data to be read. In blocking mode, HidDevice.read() will wait (block) until there is data to read before returning.

Nonblocking can be turned on and off at any time.

Parameters
nonblockenable or not the nonblocking reads - true to enable nonblocking - false to disable nonblocking.
Exceptions
Erroron failure.
Since
This function is available since SDL 3.2.0.

◆ write()

int SDL::HidDevice::write ( SourceBytes  data)
inline

The first byte of data must contain the Report ID. For devices which only support a single report, this must be set to 0x0. The remaining bytes contain the report data. Since the Report ID is mandatory, calls to HidDevice.write() will always contain one more byte than the report contains. For example, if a hid report is 16 bytes long, 17 bytes must be passed to HidDevice.write(), the Report ID (or 0x0, for devices with a single report), followed by the report data (16 bytes). In this example, the length passed in would be 17.

HidDevice.write() will send the data on the first OUT endpoint, if one exists. If it does not, it will send the data through the Control Endpoint (Endpoint 0).

Parameters
datathe data to send, including the report number as the first byte.
Returns
the actual number of bytes written and -1 on on failure; call GetError() for more information.
Since
This function is available since SDL 3.2.0.

Variable Documentation

◆ HID_API_BUS_BLUETOOTH

constexpr hid_bus_type SDL::HID_API_BUS_BLUETOOTH
constexpr
Initial value:
=
SDL_HID_API_BUS_BLUETOOTH

◆ HID_API_BUS_I2C

constexpr hid_bus_type SDL::HID_API_BUS_I2C
constexpr
Initial value:
=
SDL_HID_API_BUS_I2C

◆ HID_API_BUS_SPI

constexpr hid_bus_type SDL::HID_API_BUS_SPI
constexpr
Initial value:
=
SDL_HID_API_BUS_SPI

◆ HID_API_BUS_UNKNOWN

constexpr hid_bus_type SDL::HID_API_BUS_UNKNOWN
constexpr
Initial value:
=
SDL_HID_API_BUS_UNKNOWN

◆ HID_API_BUS_USB

constexpr hid_bus_type SDL::HID_API_BUS_USB
constexpr
Initial value:
=
SDL_HID_API_BUS_USB