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

Method USBHIDMouseBase

lib/Bad_Usb_Lib/USBHIDMouse.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "USBHIDMouse.h"
27
28USBHIDMouseBase::USBHIDMouseBase(HIDMouseType_t *type) : hid(), _buttons(0), _type(type) {
29 static bool initialized = false;
30 if (!initialized) {
31 initialized = true;
32 hid.addDevice(this, _type->descriptor_size);
33 }
34};
35
36uint16_t USBHIDMouseBase::_onGetDescriptor(uint8_t *dst) {
37 memcpy(dst, _type->report_descriptor, _type->descriptor_size);

Callers

nothing calls this directly

Calls 1

addDeviceMethod · 0.45

Tested by

no test coverage detected