We have 2 CTRL/ALT/SHIFT buttons on our keyboard. But there are VK_CONTROL
/VK_LCONTROL
/VK_RCONTROL
available in the win api. So which value is default for the VK_CONTROL?
VK_LCONTROL
(left) or VK_RCONTROL
(right)? Or maybe it choses value depending on some situation? Can't find the answer neither in MSDN nor in Google.
I think it doesn't matter in connection with CTRL - they are alternating, but it makes difference with e.g. ALT.
Text from WinUser.h:
VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys.
Used only as parameters to GetAsyncKeyState() and GetKeyState().
No other API or message will distinguish left and right keys in this way.
As far as I can tell these constants are declared in WinUser.h
#define VK_LSHIFT 0xA0
#define VK_RSHIFT 0xA1
#define VK_LCONTROL 0xA2
#define VK_RCONTROL 0xA3
#define VK_LMENU 0xA4
#define VK_RMENU 0xA5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With