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

Function Output_usbCodeRelease_capability

Output/USB/output_usb.c:594–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593
594void Output_usbCodeRelease_capability(TriggerMacro *trigger, uint8_t state, uint8_t stateType, uint8_t *args)
595{
596#if enableKeyboard_define == 1 && disable_usbCodeRelease_define == 0
597 CapabilityState cstate = KLL_CapabilityState(state, stateType);
598
599 // Release, only on initial trigger
600 switch (cstate)
601 {
602 case CapabilityState_Initial:
603 break;
604 case CapabilityState_Debug:
605 // Display capability name
606 print("Output_usbCodeRelease(usbCode)");
607
608 // Read arg if not set to 0
609 if (args != 0)
610 {
611 uint8_t key = args[0];
612 print(" -> ");
613 printInt8(key);
614 }
615 return;
616 case CapabilityState_Last:
617 default:
618 return;
619 }
620
621 // Force release
622 state = ScheduleType_R;
623
624 // Use capability to release key
625 Output_usbCodeSend_capability(trigger, state, stateType, args);
626#endif
627}
628
629
630#if enableMouse_define == 1

Callers

nothing calls this directly

Calls 3

KLL_CapabilityStateFunction · 0.85
printInt8Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…