key_event
Darren Vincent Hart <[email protected]> 27 Jul 2003 19:58:42 -0600
| Newsgroups | gmane.comp.embedded.stk.gui.devel |
|---|---|
| Message-ID | <1059357522.31619.36.camel@sway> |
Team, I didn't hear any complaints, so I went ahead and revamped the key_event mechanism. Key_events now have both a keycode and a modcode (OR'd list of modifiers, see keycode.h). One problem still: I am not sure if we should have key_3 and key_pound defined (as well as the other such pairs). SDL defines them both, but never sends the shifted version, ie you get SDLK_6 whether shift is down or not, even though they have SDLK_CARET defined. So should this translation be left up to the widget, the user's app, or what? I would like to add wchar_t field to the key_event as well so the printable character can be obtained simply through key_event::character(); --Darren