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

Function hid_read

deps/SDL2/src/hidapi/linux/hid.cpp:200–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200int HID_API_EXPORT HID_API_CALL hid_read(hid_device *device, unsigned char *data, size_t length)
201{
202 switch ( GetAPIForDevice( device ) )
203 {
204 case k_EHIDAPIRAW:
205 return HIDRAW::hid_read( (HIDRAW::hid_device*)device, data, length );
206 case k_EHIDAPIUSB:
207 return HIDUSB::hid_read( (HIDUSB::hid_device*)device, data, length );
208 default:
209 return -1;
210 }
211}
212
213int HID_API_EXPORT HID_API_CALL hid_set_nonblocking(hid_device *device, int nonblock)
214{

Callers

nothing calls this directly

Calls 1

GetAPIForDeviceFunction · 0.85

Tested by

no test coverage detected