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

Function hid_read_timeout

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

Source from the content-addressed store, hash-verified

185}
186
187int HID_API_EXPORT HID_API_CALL hid_read_timeout(hid_device *device, unsigned char *data, size_t length, int milliseconds)
188{
189 switch ( GetAPIForDevice( device ) )
190 {
191 case k_EHIDAPIRAW:
192 return HIDRAW::hid_read_timeout( (HIDRAW::hid_device*)device, data, length, milliseconds );
193 case k_EHIDAPIUSB:
194 return HIDUSB::hid_read_timeout( (HIDUSB::hid_device*)device, data, length, milliseconds );
195 default:
196 return -1;
197 }
198}
199
200int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length)
201{

Callers

nothing calls this directly

Calls 1

GetAPIForDeviceFunction · 0.85

Tested by

no test coverage detected