C++ GUI Programming For Beginners | Episode 9 - Keyboard Events

Опубликовано: 06 Апрель 2026
на канале: OttoBotCode
15,514
334

Learn how to program cross platform graphical user interfaces in C++ using wxWidgets.

How to detect when the user presses/releases a key on their keyboard? This video covers keyboard events in wxWidgets.

wxWidgets website:
https://www.wxwidgets.org/

Chapters:
0:00 - Plan
0:14 - Event Handler for Key Events
1:13 - Detect Key Press (wxEVT_KEY_DOWN)
1:56 - Checking Pressed Key (GetUnicodeKey)
2:39 - Special Keys (GetKeyCode)
4:32 - Check Specific Key
6:15 - Key Release & Key Combinations
7:16 - Behaviour With Child Controls
8:10 - KeyEvents For Controls
8:29 - Annoying Sound (Beep/Error/Bell)
8:55 - wxWANTS_CHARS Style
9:35 - Is Everything Good?
10:06 - Manual Focus Navigation
11:03 - Global Keyboard Events (wxEVT_CHAR_HOOK)
12:32 - Thanks