Yes, it would be nice if it were possible to get the character the operating system actually returned whenever you pressed a key.
(i have tried this myself using sdl and failed, so good luck )
Suggested local keyboard layout support
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Suggested local keyboard layout support
Yeah! Definatly! It's a pain to localize it everytime and to decode shiftstates etc :C
Re: Suggested local keyboard layout support
Pretty sure this can't be done using SDL. It will have to be specially made or each platform.
Here's the function we need for Windows:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
I hope someone else can find the equivalents for Linux and MacOSX.
Note: if this requires linkage to massive GTK or QT libraries, this function goes bye-bye.
Here's the function we need for Windows:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
I hope someone else can find the equivalents for Linux and MacOSX.
Note: if this requires linkage to massive GTK or QT libraries, this function goes bye-bye.
Re: Suggested local keyboard layout support
There is some kind of localization support in the game TurboSliders, which also uses SDL. But I honestly don't know if the author coded several keyboard layouts manually and just automatically figured out what to use, or if he was able to get it from SDL. I will try and find out.
It will be a very nice feature to have when you want the user to enter his name for e.g. high-score purposes.
It will be a very nice feature to have when you want the user to enter his name for e.g. high-score purposes.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 195 guests