[SDL] SDLK_LEFTPAREN and similar keysyms
Anders Folkesson
andfol at gmail.com
Sun Aug 7 07:40:34 PDT 2005
Yes. it works great now. Thanks :)
On 8/5/05, Bob Pendleton <bob at pendleton.com> wrote:
> On Fri, 2005-08-05 at 15:59 +0200, Anders Folkesson wrote:
> > Hi,
> > i am having some problems with keyboard events. The problem is that i
> > need the SDLK_xxx events from the signs that you get when holding
> > shift and pressing a key. (i.e. !"#¤()=/ and so forth). I dont get
> > those events. And i dont want to hard code a transaltion, say 8 and
> > shift is '(' because that is different on different keyboards. So i
> > wonder, how do a get those events or how can i generate them or
> > translate keypresses in a "universal" fashion?
>
> Turn on unicode translation and use the character that is returned in
> the event instead of the SDLK_XXX.
>
> Bob Pendleton
>
> >
> > Thanks
> > --Anders Folkesson
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> >
> --
> +--------------------------------------+
> + Bob Pendleton: writer and programmer +
> + email: Bob at Pendleton.com +
> + web: www.GameProgrammer.com +
> + www.Wise2Food.com +
> + nutrient info on 6,000+ common foods +
> +--------------------------------------+
>
>
More information about the SDL
mailing list