| 1072 | } |
| 1073 | |
| 1074 | int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *device, const unsigned char *data, size_t length) |
| 1075 | { |
| 1076 | if ( device ) |
| 1077 | { |
| 1078 | LOGV( "hid_send_feature_report id=%d length=%u", device->m_nId, length ); |
| 1079 | hid_device_ref<CHIDDevice> pDevice = FindDevice( device->m_nId ); |
| 1080 | if ( pDevice ) |
| 1081 | { |
| 1082 | return pDevice->SendFeatureReport( data, length ); |
| 1083 | } |
| 1084 | } |
| 1085 | return -1; // Controller was disconnected |
| 1086 | } |
| 1087 | |
| 1088 | |
| 1089 | // Synchronous operation. Will block until completed. |
nothing calls this directly
no test coverage detected