Make DEBUG=1 mode work with mouse events
This commit is contained in:
parent
0ae5aea7ac
commit
571e5b701f
|
@ -133,6 +133,14 @@ static void print_key(TermKey *tk, TermKeyKey *key)
|
||||||
case TERMKEY_TYPE_KEYSYM:
|
case TERMKEY_TYPE_KEYSYM:
|
||||||
fprintf(stderr, "Keysym sym=%d(%s)", key->code.sym, termkey_get_keyname(tk, key->code.sym));
|
fprintf(stderr, "Keysym sym=%d(%s)", key->code.sym, termkey_get_keyname(tk, key->code.sym));
|
||||||
break;
|
break;
|
||||||
|
case TERMKEY_TYPE_MOUSE:
|
||||||
|
{
|
||||||
|
TermKeyMouseEvent ev;
|
||||||
|
int button, line, col;
|
||||||
|
termkey_interpret_mouse(tk, key, &ev, &button, &line, &col);
|
||||||
|
fprintf(stderr, "Mouse ev=%d button=%d pos=(%d,%d)\n", ev, button, line, col);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
int m = key->modifiers;
|
int m = key->modifiers;
|
||||||
|
|
Loading…
Reference in New Issue