MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / CleanupEventArray

Function CleanupEventArray

source/keyboard_mouse.cpp:2882–2890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2880
2881
2882void CleanupEventArray(int aFinalKeyDelay)
2883{
2884 if (sMaxEvents > (sSendMode == SM_INPUT ? MAX_INITIAL_EVENTS_SI : MAX_INITIAL_EVENTS_PB))
2885 free(sEventSI); // Previous block was malloc'd vs. _alloc'd, so free it. Note that sEventSI and sEventPB are different views of the same variable.
2886 // The following must be done only after functions called above are done using it. But it must also be done
2887 // prior to our caller toggling capslock back on , to avoid the capslock keystroke from going into the array.
2888 sSendMode = SM_EVENT;
2889 DoKeyDelay(aFinalKeyDelay); // Do this only after resetting sSendMode above. Should be okay for mouse events too.
2890}
2891
2892
2893

Callers 2

SendKeysFunction · 0.85
PerformMouseCommonFunction · 0.85

Calls 1

DoKeyDelayFunction · 0.85

Tested by

no test coverage detected