| version 1.5, 2003/10/21 13:59:57 |
version 1.6, 2003/10/23 18:16:22 |
| Line 1321 ExposerFunctionLoop(void) /* {{{ */ |
|
| Line 1321 ExposerFunctionLoop(void) /* {{{ */ |
|
| break; |
break; |
| case KeyPress: |
case KeyPress: |
| case KeyRelease: |
case KeyRelease: |
| |
if (KEYINFO_buffer != 0) { |
| |
XPutBackEvent(TcDisplay, &Event); |
| |
break; |
| |
} |
| #if defined(X11_BGI_USE_XKeycodeToKeysym) && X11_BGI_USE_XKeycodeToKeysym |
#if defined(X11_BGI_USE_XKeycodeToKeysym) && X11_BGI_USE_XKeycodeToKeysym |
| i = XKeycodeToKeysym(TcDisplay, Event.xkey.keycode, 0); |
i = XKeycodeToKeysym(TcDisplay, Event.xkey.keycode, 0); |
| |
KEYINFO_buffer = i; |
| # if defined(X11_BGI_DEBUG) && X11_BGI_DEBUG |
# if defined(X11_BGI_DEBUG) && X11_BGI_DEBUG |
| fprintf(stderr, "ExposerFunctionLoop(): Key%s %x (%d) [%c]\n", |
fprintf(stderr, "ExposerFunctionLoop(): Key%s %x (%d)", |
| Event.xkey.type == KeyPress ? "Press" : "Release", |
Event.xkey.type == KeyPress ? "Press" : "Release", i, i); |
| i, i, i); |
if (i >= 0 && i <= 255 && isprint(i)) |
| |
fprintf(stderr, " [%c]", i); |
| |
fputc('\n', stderr); |
| # endif |
# endif |
| #else |
#else |
| /* This needs to be fixed up some to accomodate things */ |
/* This needs to be fixed up some to accomodate things */ |
| Line 1428 ExposerFunctionLoop(void) /* {{{ */ |
|
| Line 1435 ExposerFunctionLoop(void) /* {{{ */ |
|
| } |
} |
| MOUINFO_bstat = 0 |
MOUINFO_bstat = 0 |
| + ((j & Button1Mask) ? 1 : 0) |
+ ((j & Button1Mask) ? 1 : 0) |
| + ((j & Button2Mask) ? 2 : 0) |
+ ((j & Button2Mask) ? 0 : 0) /* Middle button disabled */ |
| + ((j & Button3Mask) ? 0 : 0); /* Button3 disabled */ |
+ ((j & Button3Mask) ? 2 : 0); |
| #if defined(X11_BGI_DEBUG) && X11_BGI_DEBUG |
#if defined(X11_BGI_DEBUG) && X11_BGI_DEBUG |
| fprintf(stderr, "ExposerFunctionLoop(): Button%s %d\n", |
fprintf(stderr, "ExposerFunctionLoop(): Button%s %d\n", |
| Event.xbutton.type == ButtonPress ? "Press" : "Release", |
Event.xbutton.type == ButtonPress ? "Press" : "Release", |