Re: key_event

Marc Strämke <[email protected]> Mon, 28 Jul 2003 22:12:04 +0200
Newsgroups gmane.comp.embedded.stk.gui.devel
Message-ID <[email protected]>
Darren Vincent Hart wrote:
> 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();
Imo this is the most important aspect of the whole key event, all 
translation should be done by the input layer, not the widgets  IMNSHO
> 
> --Darren