Skip to content

WindowsApi:Virtual-Key Codes

The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.

Constant

value

Description

VK_LBUTTON

0x01

Left mouse button

VK_RBUTTON

0x02

Right mouse button

etc ...

See also

Favorite site

References


  1. Win32_virtual_key_codes.pdf