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
| 123 | // Returns 2 if there's an error |
| 124 | // Generally 1 will be the return |
| 125 | int 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…