Struct sdl2_sys::SDL_hid_device_info
source · #[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_char
Platform-specific device path
vendor_id: c_ushort
Device Vendor ID
product_id: c_ushort
Device Product ID
serial_number: *mut wchar_t
Serial Number
release_number: c_ushort
Device Release Number in binary-coded decimal, also known as Device Version Number
manufacturer_string: *mut wchar_t
Manufacturer String
product_string: *mut wchar_t
Product string
usage_page: c_ushort
Usage Page for this Device/Interface (Windows/Mac only).
usage: c_ushort
Usage for this Device/Interface (Windows/Mac only).
interface_number: c_int
The 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_int
Additional information about the USB interface. Valid on libusb and Android implementations.
interface_subclass: c_int
§interface_protocol: c_int
§next: *mut SDL_hid_device_info
Pointer 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 copy 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