internal void HandleKeyDown(IntPtr wParam, IntPtr lParam)
        {
            var virtualKey = (WinFormsKeys)wParam.ToInt64();

            virtualKey = GetCorrectExtendedKey(virtualKey, lParam.ToInt64());
            keyboard?.HandleKeyDown(virtualKey);
            heldKeys.Add(virtualKey);
        }
Beispiel #2
0
        internal void HandleKeyDown(IntPtr wParam, IntPtr lParam)
        {
            var lParamLong = lParam.ToInt64();

            if (MessageIsDownAutoRepeat(lParamLong))
            {
                return;
            }

            var virtualKey = (WinFormsKeys)wParam.ToInt64();

            virtualKey = GetCorrectExtendedKey(virtualKey, lParamLong);
            keyboard?.HandleKeyDown(virtualKey);
            heldKeys.Add(virtualKey);
        }