Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Christian's comment:
Browse files Browse the repository at this point in the history
/* Actually returns a UInt32 containing two character codes (and two 'reserved' bytes), but we're only interested in the second (or only) one */
  • Loading branch information
slouken committed Feb 5, 2008
1 parent 525f176 commit 8ed554d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -413,13 +413,13 @@ - (void) doCommandBySelector:(SEL) myselector {}
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,
Expand Down

0 comments on commit 8ed554d

Please sign in to comment.