Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpad masks fix #141

Open
wants to merge 1 commit into
base: 1.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/windows/input_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ unsigned short keycode_to_scancode(DWORD vk_code, DWORD flags) {
__FUNCTION__, __LINE__, vk_code);

switch (vk_code) {
case VK_RETURN:
scancode |= 0x0E00;
break;
}
} else {
switch (vk_code) {
case VK_INSERT:
case VK_DELETE:
case VK_PRIOR:
case VK_NEXT:
case VK_END:
Expand All @@ -311,17 +319,10 @@ unsigned short keycode_to_scancode(DWORD vk_code, DWORD flags) {
case VK_UP:
case VK_RIGHT:
case VK_DOWN:

case VK_INSERT:
case VK_DELETE:
case VK_CLEAR:
scancode |= 0xEE00;
break;

case VK_RETURN:
scancode |= 0x0E00;
break;
}
} else {
logger(LOG_LEVEL_DEBUG, "%s [%u]: Using normal lookup for vk_code: %li\n",
__FUNCTION__, __LINE__, vk_code);
}
Expand Down