| 55 | static CUtlHashMap<uintptr_t, EHIDAPIType> s_hashDeviceToAPI; |
| 56 | |
| 57 | static 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 | |
| 67 | struct hid_device_info HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id) |
| 68 | { |
no outgoing calls
no test coverage detected