[SDL] Getting keymap data from OS using SDL 1.3/2.0

sreyas k k.sreyas at gmail.com
Sun Apr 13 17:10:12 PDT 2008


On Mon, Apr 14, 2008 at 2:24 AM, Bob Pendleton <bob at pendleton.com> wrote:

>
> No, not really.  What1.3/2.0 does is provide the actual key that was
> pressed rather than just the character generated by the key press. It also
> gives you the character and supports unicode input.
>
> To really answer your question I need to know what you are trying to do.
>
> Bob Pendleton
>
> On Sun, Apr 13, 2008 at 2:01 AM, sreyas k <k.sreyas at gmail.com> wrote:
>
> > Hi,
> >
> > Does SDL 1.3/2.0 has any feature by which we can get the keymap data
> > from the OS?
> >
> > Regards,
> > Sreyas
> >
> >
> >
> I wanted to know if an api was there so that the entire keymap can be
gotten from the OS. I already know that we can detect  keypresses. I am
working on the tuxtype typing tutor, in which the keymap details were put
into a file named keyboard.lst
The format of the file is
Finger|Keypress

It would be nice if we could remove that file and directly import the keymap
from the OS. I saw an idea for this year's Google SOC regarding this. SO I
would like to know if there is any feature in SDL to implement this.

Regards,
Sreyas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080414/29b75019/attachment.htm 


More information about the SDL mailing list