Commit 671a7085 authored by Sam Lantinga's avatar Sam Lantinga

Christian's comment:

/* Actually returns a UInt32 containing two character codes (and two 'reserved' bytes), but we're only interested in the second (or only) one */

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402716
parent 02f2e328
...@@ -413,13 +413,13 @@ UpdateKeymap(SDL_VideoData *data) ...@@ -413,13 +413,13 @@ UpdateKeymap(SDL_VideoData *data)
continue; continue;
} }
c = KeyTranslate (chr_data, i, &state); c = KeyTranslate (chr_data, i, &state) & 255;
if (state) { if (state) {
/* Dead key, process key up */ /* Dead key, process key up */
c = KeyTranslate (chr_data, i | 128, &state); c = KeyTranslate (chr_data, i | 128, &state) & 255;
} }
if (c != 0 && c != 0x10 && c < 256) { if (c != 0 && c != 0x10) {
/* MacRoman to Unicode table, taken from X.org sources */ /* MacRoman to Unicode table, taken from X.org sources */
static const unsigned short macroman_table[128] = { static const unsigned short macroman_table[128] = {
0xc4, 0xc5, 0xc7, 0xc9, 0xd1, 0xd6, 0xdc, 0xe1, 0xc4, 0xc5, 0xc7, 0xc9, 0xd1, 0xd6, 0xdc, 0xe1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment