comparison src/video/dga/SDL_dgaevents.c @ 1575:3ba88cb7eb1b

Updated dynamic X11 code. See details in Bugzilla #170.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 22 Mar 2006 05:00:59 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb cbad710a6509
comparison
equal deleted inserted replaced
1574:0fd72308659e 1575:3ba88cb7eb1b
43 static int DGA_DispatchEvent(_THIS) 43 static int DGA_DispatchEvent(_THIS)
44 { 44 {
45 int posted; 45 int posted;
46 SDL_NAME(XDGAEvent) xevent; 46 SDL_NAME(XDGAEvent) xevent;
47 47
48 pXNextEvent(DGA_Display, (XEvent *)&xevent); 48 XNextEvent(DGA_Display, (XEvent *)&xevent);
49 49
50 posted = 0; 50 posted = 0;
51 xevent.type -= DGA_event_base; 51 xevent.type -= DGA_event_base;
52 switch (xevent.type) { 52 switch (xevent.type) {
53 53
94 /* Look up the translated value for the key event */ 94 /* Look up the translated value for the key event */
95 if ( SDL_TranslateUNICODE ) { 95 if ( SDL_TranslateUNICODE ) {
96 static XComposeStatus state; 96 static XComposeStatus state;
97 char keybuf[32]; 97 char keybuf[32];
98 98
99 if ( pXLookupString(&xkey, keybuf, sizeof(keybuf), NULL, &state) ) { 99 if ( XLookupString(&xkey, keybuf, sizeof(keybuf), NULL, &state) ) {
100 /* 100 /*
101 * FIXME: XLookupString() may yield more than one 101 * FIXME: XLookupString() may yield more than one
102 * character, so we need a mechanism to allow for 102 * character, so we need a mechanism to allow for
103 * this (perhaps null keypress events with a 103 * this (perhaps null keypress events with a
104 * unicode value) 104 * unicode value)