Adds a ScanCode to 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 1 will be the return
| 140 | // Returns 2 if there's an error |
| 141 | // Generally 1 will be the return |
| 142 | int Scan_addScanCode( uint8_t index, uint8_t type ) |
| 143 | { |
| 144 | // Add key event to macro key buffer |
| 145 | TriggerGuide guide = { |
| 146 | .type = type, |
| 147 | .state = ScheduleType_P, // Press |
| 148 | .scanCode = index, |
| 149 | }; |
| 150 | |
| 151 | return Macro_pressReleaseAdd( &guide ); |
| 152 | } |
| 153 | |
| 154 | |
| 155 | // Signals a ScanCode removal from the internal KLL buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…