Hi! I’m new on this list and new to SDL too. I’m planning to use SDL to
port a (Free)DOS application I’ve been working on.
To get a behavior similar to getxkey() in DJGPP, I wrote this little
function:
int vid_parsekey(SDL_Event *ev) {
int k;
k=ev->key.keysym.unicode & 0xff;
if(k && !(ev->key.keysym.mod & KMOD_CTRL)) return k;
k=ev->key.keysym.sym;
if(!(k>=300 && k<=314)) return k; //ignore modifiers
return 0;
}
It works excellent in X11, but not in fbcon. It seems that
key-combinations like AltGr+2 which gives ‘@’ on my fi-lat1 keyboard
does not set the unicode field to ‘@’ as it does in X11… All I get is
an AltGr event and a ‘2’ event, but I don’t want to map all this
myself. There is also other single keys that isn’t represented.
Is this a bug in SDL_fbevents.c or can I do something about it? This
problem makes it impossible to have normal text input when using fbcon.
/Jonatan -=( http://kymatica.com )=-