- when key pressed, print both the keysym and keycode with BX_DEBUG

This commit is contained in:
Bryce Denney 2001-06-25 21:28:00 +00:00
parent 4b73c8b284
commit 602b054d38

View File

@ -566,6 +566,7 @@ bx_gui_c::handle_events(void)
key_event = (XKeyEvent *) &report;
charcount = XLookupString(key_event, buffer, bufsize, &keysym, &compose);
keycode = XKeysymToKeycode(bx_x_display, keysym);
BX_DEBUG (("key pressed, keysym=%d, keycode=%d", keysym, keycode));
xkeypress(keycode, 0);
break;
@ -671,7 +672,6 @@ xkeypress(KeyCode keycode, int press_release)
{
Bit32u key_event;
key_event = (unsigned) keycode;
BX_DEBUG (("keycode: %d\n", (unsigned) keycode));
if (press_release)
key_event |= BX_KEY_RELEASED;