diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2009-11-27 14:56:38 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2009-11-27 14:56:38 +0000 |
commit | 571e5b701f4d45d7c0942206b78f4c3b3478d248 (patch) | |
tree | 493cfc85efb8b7b47535a43e1fc6abb6564cd5f7 | |
parent | 0ae5aea7ac28fd37895f679b77c4efcb37724502 (diff) | |
download | termo-571e5b701f4d45d7c0942206b78f4c3b3478d248.tar.gz termo-571e5b701f4d45d7c0942206b78f4c3b3478d248.tar.xz termo-571e5b701f4d45d7c0942206b78f4c3b3478d248.zip |
Make DEBUG=1 mode work with mouse events
-rw-r--r-- | termkey.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |