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

Function ModifiersLRToText

source/keyboard_mouse.cpp:3711–3724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3709
3710
3711LPTSTR ModifiersLRToText(modLR_type aModifiersLR, LPTSTR aBuf)
3712// Caller has ensured that aBuf is not NULL.
3713{
3714 *aBuf = '\0';
3715 if (aModifiersLR & MOD_LWIN) _tcscat(aBuf, _T("LWin "));
3716 if (aModifiersLR & MOD_RWIN) _tcscat(aBuf, _T("RWin "));
3717 if (aModifiersLR & MOD_LSHIFT) _tcscat(aBuf, _T("LShift "));
3718 if (aModifiersLR & MOD_RSHIFT) _tcscat(aBuf, _T("RShift "));
3719 if (aModifiersLR & MOD_LCONTROL) _tcscat(aBuf, _T("LCtrl "));
3720 if (aModifiersLR & MOD_RCONTROL) _tcscat(aBuf, _T("RCtrl "));
3721 if (aModifiersLR & MOD_LALT) _tcscat(aBuf, _T("LAlt "));
3722 if (aModifiersLR & MOD_RALT) _tcscat(aBuf, _T("RAlt "));
3723 return aBuf;
3724}
3725
3726
3727

Callers 2

ListKeyHistoryMethod · 0.85
GetHookStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected