MCPcopy Create free account
hub / github.com/BruceDevices/firmware / _onGetDescriptor

Method _onGetDescriptor

lib/Bad_Usb_Lib/USBHIDMouse.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36uint16_t USBHIDMouseBase::_onGetDescriptor(uint8_t *dst) {
37 memcpy(dst, _type->report_descriptor, _type->descriptor_size);
38 return _type->descriptor_size;
39}
40
41void USBHIDMouseBase::buttons(uint8_t b) {
42 if (b != _buttons) { _buttons = b; }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected