From 571e5b701f4d45d7c0942206b78f4c3b3478d248 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Fri, 27 Nov 2009 14:56:38 +0000 Subject: Make DEBUG=1 mode work with mouse events --- termkey.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/termkey.c b/termkey.c index fd4fc37..1577e74 100644 --- a/termkey.c +++ b/termkey.c @@ -133,6 +133,14 @@ static void print_key(TermKey *tk, TermKeyKey *key) case TERMKEY_TYPE_KEYSYM: fprintf(stderr, "Keysym sym=%d(%s)", key->code.sym, termkey_get_keyname(tk, key->code.sym)); 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; -- cgit v1.2.3-70-g09d2