[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Keys in SDL
- To: linuxgames@sunsite.dk
- Subject: Keys in SDL
- From: "Miguel A. Osorio" <maos@gbl.com.br>
- Date: Mon, 20 Jan 2003 18:25:48 -0200
- Delivered-to: archiver@seul.org
- Delivered-to: mailing list linuxgames@sunsite.dk
- Delivery-date: Mon, 20 Jan 2003 17:11:45 -0500
- Mailing-list: contact linuxgames-help@sunsite.dk; run by ezmlm
- References: <20021124110121.GC2021@ypisco.com> <3DE0EE31.1070904@airmail.net> <3DE1733E.6030309@gmx.de> <3DE19C32.6000009@airmail.net> <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>
- Reply-to: linuxgames@sunsite.dk
- Sender: hornet@seul.org
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. Ok, I'm aware
of the mod information available for each keyboard event, so I know when
the user has a SHIFT pressed down. My problem is: is there any logical
operation to perform on any ASCII character to map to/from a "shifted"
key? Or do I have to code all the translations one by one? I guess I'm
probably missing something simple here :)
Thank you for your attention,
Miguel A. Osorio.