Synchronous operation. Will block until completed.
| 1088 | |
| 1089 | // Synchronous operation. Will block until completed. |
| 1090 | int HID_API_EXPORT HID_API_CALL hid_get_feature_report(hid_device *device, unsigned char *data, size_t length) |
| 1091 | { |
| 1092 | if ( device ) |
| 1093 | { |
| 1094 | LOGV( "hid_get_feature_report id=%d length=%u", device->m_nId, length ); |
| 1095 | hid_device_ref<CHIDDevice> pDevice = FindDevice( device->m_nId ); |
| 1096 | if ( pDevice ) |
| 1097 | { |
| 1098 | return pDevice->GetFeatureReport( data, length ); |
| 1099 | } |
| 1100 | } |
| 1101 | return -1; // Controller was disconnected |
| 1102 | } |
| 1103 | |
| 1104 | |
| 1105 | void HID_API_EXPORT HID_API_CALL hid_close(hid_device *device) |
nothing calls this directly
no test coverage detected