Partager via


D-pad Virtual Key Code Support (Compact 2013)

3/28/2014

A directional pad (D-pad) is a directional input control that is found on device hardware. For applications to take full advantage of your D-pad, your driver must generate the proper virtual key codes.

For example, your driver should send a VK_DPAD (VK_F21) after sending the VK_UP, VK_DOWN, VK_LEFT, or VK_RIGHT from the D-pad. VK_DPAD is sent so that applications can differentiate between arrows generated from the hardware keyboard, the rocker, and the D-pad via the GetKeyEventSource function.

If you have a rocker, a VK_ROCKER (VK_F20) should be sent after the VK_UP or VK_DOWN.

See Also

Other Resources

Keyboard