Skip to content

Commit eb81508

Browse files
committed
(#12) Added time flag to INPUT struct
1 parent e328395 commit eb81508

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/keypress.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ void win32KeyEvent(int key, MMKeyFlags flags)
106106
keyboardInput.type = INPUT_KEYBOARD;
107107
keyboardInput.ki.wScan = scan;
108108
keyboardInput.ki.dwFlags = KEYEVENTF_SCANCODE | flags;
109+
keyboardInput.ki.time = 0;
109110
SendInput(1, &keyboardInput, sizeof(keyboardInput));
110111
}
111112
#endif

0 commit comments

Comments
 (0)