View Single Post
tobiasj's Avatar
Posts: 241 | Thanked: 74 times | Joined on Jul 2007
#4
Originally Posted by fanoush View Post
You need to call SDL_EnableUNICODE(1) at runtime. Both keys (fn+key) need to be pressed though.
Thanks for the info and the link, looks easy enough but my near complete ignorance of programming in c or C++ comes out now and I have to ask, how, no, where, ok wait, so this At Runtime part is whats getting me. I have tried inserting that into the code a few different places, and the places I think it should go either are not correct or something more than this call is needed because it still doesn't like the fn + [key] combinations though all normal keypresses still work properly.

Is there some example code I can peek though that uses this call to give me an idea where it should be put? My own thought was right here...

Code:
    SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY,
                        SDL_DEFAULT_REPEAT_INTERVAL);
    SDL_EnableUNICODE(1);
but if that is correct, then it isn't enough to make it work.

Thanks again

-John "Strugglin' through it just because it's fun" Tobias