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

Function Scan_setTriggerCode

Scan/TestIn/scan_loop.c:125–135  ·  view source on GitHub ↗

Adds a trigger code to the queue Returns 1 if added, 0 if the ScanCode is already in the buffer Returns 2 if there's an error Generally 1 will be the return

Source from the content-addressed store, hash-verified

123// Returns 2 if there's an error
124// Generally 1 will be the return
125int Scan_setTriggerCode( uint8_t index, uint8_t type, uint8_t state )
126{
127 // Add trigger event to macro key buffer
128 TriggerGuide guide = {
129 .type = type,
130 .state = state,
131 .scanCode = index,
132 };
133
134 return Macro_pressReleaseAdd( &guide );
135}
136
137
138// Adds a ScanCode to the internal KLL buffer

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…