[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keys in SDL
- To: linuxgames@sunsite.dk
- Subject: Re: Keys in SDL
- From: Bill Kendrick <nbs@sonic.net>
- Date: Mon, 20 Jan 2003 15:50:04 -0800
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Mon, 20 Jan 2003 18:50:14 -0500
- In-reply-to: <3E2C5B4C.548FFF79@gbl.com.br>
- Mail-followup-to: linuxgames@sunsite.dk
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- References: <20021125191244.GD27874@fysh.org> <3DE2B388.6080201@airmail.net> <20021129180109.GB26555@fysh.org> <3DEF8287.41A19@gbl.com.br> <20021205204605.GA31724@fysh.org> <3DEFD379.2060706@airmail.net> <20021206175839.GA1980@fysh.org> <3DF10011.2040403@airmail.net> <3DF1F162.34283119@gbl.com.br> <3E2C5B4C.548FFF79@gbl.com.br>
- Reply-to: linuxgames@sunsite.dk
- User-agent: Mutt/1.3.22.1i
On Mon, Jan 20, 2003 at 06:25:48PM -0200, Miguel A. Osorio wrote:
> Hey people,
>
>
>
> It's been quite some time since someone last posted here :) So here's
> one simple problem I'm having. Using SDL, I coded some routines to get
> input in the form of a string, but I'm having trouble with keys that
> need a SHIFT to come out correctly - for instance, if I press a '4', ok,
> but if I press SHIFT + '4', I still get the SDLK_4 symbol.
Check the 'event.key.keysym.unicode' value when you get the SDL_KEYDOWN event.
That's what I do in Tux Paint to cobble together strings in the 'Text' tool.
-bill!