-
October 3rd, 2011, 07:47 AM
#1
Virtual keycode for backslash key
Witch is virtual keycode for backslash (key near enter/return)?
This does not work:
Code:
case VK_OEM_102:
{
// keyboard = RAWKEYBOARD
if(keyboard.Flags & RI_KEY_BREAK)//key up
{
keysUp[KEY_BACKSLASH] = true;
keysPressed[KEY_BACKSLASH] = false;
}
else
{
keysPressed[KEY_BACKSLASH] = true;
}
}break;
-
October 3rd, 2011, 08:32 AM
#2
Re: Virtual keycode for backslash key
1. Virtual keycode for backslash (ор the angle bracket) key is 0xЕ2 (VK_OEM_102)
2. What does not work in the code snippet you have posted? Where is this code executed?
Victor Nijegorodov
-
October 3rd, 2011, 08:41 AM
#3
Re: Virtual keycode for backslash key
I am not sure witch type is my keyboard. If i seen correctly i got only one (\) backslash key on it (with shift key its (|) "bar").
I 've used exact code for other keys and it works (displaying some text if certain key is pressed) except for some of them. so far i can't get these keys (code is still WIP so i am yet to discover others i need that not work):
\ - backslash
/ - slash
; - semicolon
Thanks for your time.
-
October 3rd, 2011, 10:31 AM
#4
Re: Virtual keycode for backslash key
Solved.
I set code to print me v. keycodes for pressed keys that was not worked.
I got backslash as 220 (0xDC) and in documentaion it said its VK_OEM_5.
-
October 3rd, 2011, 10:43 AM
#5
Re: Virtual keycode for backslash key
In my old MSDN from October 2000:
VK_OEM_5 DC Windows 2000: For the US standard keyboard, the '\|' key
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|