Skip to content

Commit

Permalink
Fixed bug #450
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 4, 2007
1 parent 4c351fc commit a90ec98
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 371 deletions.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -722,6 +722,10 @@ printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode);
static XComposeStatus state;
char keybuf[32];

keysym.scancode = keycode;
keysym.sym = X11_TranslateKeycode(SDL_Display, keycode);
keysym.mod = KMOD_NONE;
keysym.unicode = 0;
if ( XLookupString(&xevent.xkey,
keybuf, sizeof(keybuf),
NULL, &state) ) {
Expand Down

0 comments on commit a90ec98

Please sign in to comment.