MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / hid_send_feature_report

Function hid_send_feature_report

deps/SDL2/src/hidapi/android/hid.cpp:1074–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074int 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.

Callers

nothing calls this directly

Calls 2

FindDeviceFunction · 0.85
SendFeatureReportMethod · 0.80

Tested by

no test coverage detected