#[repr(C)]pub struct SDL_hid_device_info {Show 14 fields
pub path: *mut c_char,
pub vendor_id: c_ushort,
pub product_id: c_ushort,
pub serial_number: *mut wchar_t,
pub release_number: c_ushort,
pub manufacturer_string: *mut wchar_t,
pub product_string: *mut wchar_t,
pub usage_page: c_ushort,
pub usage: c_ushort,
pub interface_number: c_int,
pub interface_class: c_int,
pub interface_subclass: c_int,
pub interface_protocol: c_int,
pub next: *mut SDL_hid_device_info,
}Expand description
hidapi info structure / /* \brief Information about a connected HID device
Fields§
§path: *mut c_charPlatform-specific device path
vendor_id: c_ushortDevice Vendor ID
product_id: c_ushortDevice Product ID
serial_number: *mut wchar_tSerial Number
release_number: c_ushortDevice Release Number in binary-coded decimal, also known as Device Version Number
manufacturer_string: *mut wchar_tManufacturer String
product_string: *mut wchar_tProduct string
usage_page: c_ushortUsage Page for this Device/Interface (Windows/Mac only).
usage: c_ushortUsage for this Device/Interface (Windows/Mac only).
interface_number: c_intThe USB interface which this logical device represents.
Valid on both Linux implementations in all cases. Valid on the Windows implementation only if the device contains more than one interface.
interface_class: c_intAdditional information about the USB interface. Valid on libusb and Android implementations.
interface_subclass: c_int§interface_protocol: c_int§next: *mut SDL_hid_device_infoPointer to the next device
Trait Implementations§
Source§impl Clone for SDL_hid_device_info
impl Clone for SDL_hid_device_info
Source§fn clone(&self) -> SDL_hid_device_info
fn clone(&self) -> SDL_hid_device_info
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SDL_hid_device_info
Auto Trait Implementations§
impl Freeze for SDL_hid_device_info
impl RefUnwindSafe for SDL_hid_device_info
impl !Send for SDL_hid_device_info
impl !Sync for SDL_hid_device_info
impl Unpin for SDL_hid_device_info
impl UnwindSafe for SDL_hid_device_info
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more