MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / hid_set_nonblocking

Function hid_set_nonblocking

lib/sdl2/src/hidapi/linux/hid.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *device, int nonblock)
214{
215 switch ( GetAPIForDevice( device ) )
216 {
217 case k_EHIDAPIRAW:
218 return HIDRAW::hid_set_nonblocking( (HIDRAW::hid_device*)device, nonblock );
219 case k_EHIDAPIUSB:
220 return HIDUSB::hid_set_nonblocking( (HIDUSB::hid_device*)device, nonblock );
221 default:
222 return -1;
223 }
224}
225
226int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *device, const unsigned char *data, size_t length)
227{

Callers

nothing calls this directly

Calls 1

GetAPIForDeviceFunction · 0.85

Tested by

no test coverage detected