MCPcopy Create free account
hub / github.com/kiibohd/controller / Scan_removeScanCode

Function Scan_removeScanCode

Scan/TestIn/scan_loop.c:159–169  ·  view source on GitHub ↗

Signals a ScanCode removal from the internal KLL buffer Returns 1 if added, 0 if the ScanCode is already in the buffer Returns 2 if there's an error Generally 0 will be the return

Source from the content-addressed store, hash-verified

157// Returns 2 if there's an error
158// Generally 0 will be the return
159int Scan_removeScanCode( uint8_t index, uint8_t type )
160{
161 // Add key event to macro key buffer
162 TriggerGuide guide = {
163 .type = type,
164 .state = ScheduleType_R, // Release
165 .scanCode = index,
166 };
167
168 return Macro_pressReleaseAdd( &guide );
169}
170
171
172// Signal from the Output Module that the available current has changed

Callers

nothing calls this directly

Calls 1

Macro_pressReleaseAddFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…