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

Function hid_get_feature_report

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

Synchronous operation. Will block until completed.

Source from the content-addressed store, hash-verified

1088
1089// Synchronous operation. Will block until completed.
1090int 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
1105void HID_API_EXPORT HID_API_CALL hid_close(hid_device *device)

Callers

nothing calls this directly

Calls 2

FindDeviceFunction · 0.85
GetFeatureReportMethod · 0.80

Tested by

no test coverage detected