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

Function InitEventArray

source/keyboard_mouse.cpp:2720–2733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2718
2719
2720void InitEventArray(void *aMem, UINT aMaxEvents, modLR_type aModifiersLR)
2721{
2722 sEventPB = (PlaybackEvent *)aMem; // Sets sEventSI too, since both are the same.
2723 sMaxEvents = aMaxEvents;
2724 sEventModifiersLR = aModifiersLR;
2725 sSendInputCursorPos.x = COORD_UNSPECIFIED;
2726 sSendInputCursorPos.y = COORD_UNSPECIFIED;
2727 sHooksToRemoveDuringSendInput = 0;
2728 sEventCount = 0;
2729 sAbortArraySend = false; // If KeyEvent() ever sets it to true, that allows us to send nothing at all rather than a partial send.
2730 sFirstCallForThisEvent = true;
2731 // The above isn't a local static inside PlaybackProc because PlaybackProc might get aborted in the
2732 // middle of a NEXT/SKIP pair by user pressing Ctrl-Esc, etc, which would make it unreliable.
2733}
2734
2735
2736

Callers 2

SendKeysFunction · 0.85
PerformMouseCommonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected