Skip to content

Commit e328395

Browse files
committed
(#12) Specified INPUT#type to be INPUT_KEYBOARD
1 parent c38631c commit e328395

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/keypress.c

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void win32KeyEvent(int key, MMKeyFlags flags)
103103
}
104104

105105
INPUT keyboardInput;
106+
keyboardInput.type = INPUT_KEYBOARD;
106107
keyboardInput.ki.wScan = scan;
107108
keyboardInput.ki.dwFlags = KEYEVENTF_SCANCODE | flags;
108109
SendInput(1, &keyboardInput, sizeof(keyboardInput));

0 commit comments

Comments
 (0)