Are they really the virtual codes?
Virtual key codes for some keys like shift, [ , ],Del etc are displayed as a different value in java compared to C++/C. For example : Key Java C / C++ Shift 16 160 [ 91 219 ] 93 221 \ 92 220 Del 127 46 Window 524 91 What is the reason for this ? Are these codes the virtual codes or they are a different type ? For the keys including alphabets,numbers,the function keys(F1-F12),backspace,`,etc are the same. I might be misunderstanding a concept,in that case please clarify. Checked in C/C++ KBDLLHOOKSTRUCT * kbhook = (KBDLLHOOKSTRUCT *) lParam; printf("%u\n",kbhook->vkCode); Checked in Java