MCPcopy Create free account
hub / github.com/MHeironimus/ArduinoJoystickLibrary / AppendDescriptor

Method AppendDescriptor

src/DynamicHID/DynamicHID.cpp:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void DynamicHID_::AppendDescriptor(DynamicHIDSubDescriptor *node)
84{
85 if (!rootNode) {
86 rootNode = node;
87 } else {
88 DynamicHIDSubDescriptor *current = rootNode;
89 while (current->next) {
90 current = current->next;
91 }
92 current->next = node;
93 }
94 descriptorSize += node->length;
95}
96
97int DynamicHID_::SendReport(uint8_t id, const void* data, int len)
98{

Callers 1

Joystick_Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected