Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 3999:f61a20d195f7 SDL-1.2
Fixed bug #450
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 04 Jul 2007 15:22:07 +0000 |
parents | b966761fef6c |
children | ca992789c798 |
comparison
equal
deleted
inserted
replaced
3998:098ac044cd2f | 3999:f61a20d195f7 |
---|---|
720 #endif | 720 #endif |
721 { | 721 { |
722 static XComposeStatus state; | 722 static XComposeStatus state; |
723 char keybuf[32]; | 723 char keybuf[32]; |
724 | 724 |
725 keysym.scancode = keycode; | |
726 keysym.sym = X11_TranslateKeycode(SDL_Display, keycode); | |
727 keysym.mod = KMOD_NONE; | |
728 keysym.unicode = 0; | |
725 if ( XLookupString(&xevent.xkey, | 729 if ( XLookupString(&xevent.xkey, |
726 keybuf, sizeof(keybuf), | 730 keybuf, sizeof(keybuf), |
727 NULL, &state) ) { | 731 NULL, &state) ) { |
728 /* | 732 /* |
729 * FIXME: XLookupString() may yield more than one | 733 * FIXME: XLookupString() may yield more than one |