MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetAPIForDevice

Function GetAPIForDevice

lib/sdl2/src/hidapi/linux/hid.cpp:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static CUtlHashMap<uintptr_t, EHIDAPIType> s_hashDeviceToAPI;
56
57static EHIDAPIType GetAPIForDevice( hid_device *pDevice )
58{
59 int iIndex = s_hashDeviceToAPI.Find( (uintptr_t)pDevice );
60 if ( iIndex != -1 )
61 {
62 return s_hashDeviceToAPI[ iIndex ];
63 }
64 return k_EHIDAPIUnknown;
65}
66
67struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id)
68{

Calls

no outgoing calls

Tested by

no test coverage detected