Mercurial > sdl-ios-xcode
changeset 2304:50f58ce12497
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 */
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 05 Feb 2008 07:30:50 +0000 |
parents | d87417504c75 |
children | fbe8ff44c519 |
files | src/video/cocoa/SDL_cocoakeyboard.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoakeyboard.m Tue Feb 05 07:19:23 2008 +0000 +++ b/src/video/cocoa/SDL_cocoakeyboard.m Tue Feb 05 07:30:50 2008 +0000 @@ -413,13 +413,13 @@ continue; } - c = KeyTranslate (chr_data, i, &state); + c = KeyTranslate (chr_data, i, &state) & 255; if (state) { /* 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 */ static const unsigned short macroman_table[128] = { 0xc4, 0xc5, 0xc7, 0xc9, 0xd1, 0xd6, 0xdc, 0xe1,