SDLK_LEFTPAREN and similar keysyms

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?

Thanks
–Anders Folkesson

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?

Thanks
–Anders Folkesson

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 PendletonOn Fri, 2005-08-05 at 15:59 +0200, Anders Folkesson wrote:

Thanks
–Anders Folkesson


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


±-------------------------------------+

Yes. it works great now. Thanks :)On 8/5/05, Bob Pendleton 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


±-------------------------------------+