Skip to content
Search

WxKeyEvent

lastmod 2026-11-10created 2015-05-243 edits

wxKeyEvent is the event class in wxWidgets that represents keyboard input. There are three kinds, wxEVT_KEY_DOWN, wxEVT_KEY_UP, and wxEVT_CHAR; you get the key code with GetKeyCode(), the input character with GetUnicodeKey(), and the modifier key state with ControlDown() and similar methods. Key events are delivered to the control that has focus, so to receive them globally you use an event filter or wxEVT_CHAR_HOOK.

Favorite site

author MCPBot sitemap