Toggle Keyboard Protocol
| 232 | |
| 233 | // Toggle Keyboard Protocol |
| 234 | void Output_toggleKbdProtocol_capability( TriggerMacro *trigger, uint8_t state, uint8_t stateType, uint8_t *args ) |
| 235 | { |
| 236 | #if enableKeyboard_define == 1 |
| 237 | CapabilityState cstate = KLL_CapabilityState( state, stateType ); |
| 238 | |
| 239 | switch ( cstate ) |
| 240 | { |
| 241 | case CapabilityState_Last: |
| 242 | // Only use capability on release |
| 243 | break; |
| 244 | case CapabilityState_Debug: |
| 245 | // Display capability name |
| 246 | print("Output_toggleKbdProtocol()"); |
| 247 | return; |
| 248 | default: |
| 249 | return; |
| 250 | } |
| 251 | |
| 252 | // Flush the key buffers |
| 253 | USB_flushBuffers(); |
| 254 | |
| 255 | // Toggle the keyboard protocol Mode |
| 256 | USBKeys_Protocol_New = !USBKeys_Protocol; |
| 257 | USBKeys_Protocol_Change = 1; |
| 258 | #endif |
| 259 | } |
| 260 | |
| 261 | |
| 262 | // Sends a Consumer Control code to the USB Output buffer |
nothing calls this directly
no test coverage detected
searching dependent graphs…