aboutsummaryrefslogtreecommitdiff
path: root/termkey2.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-10-13 23:36:14 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-10-13 23:39:15 +0200
commite330d751a42def1e014227d5e39969af6e87591f (patch)
treeaab18e54d2a99f48bbc1a9492af17357a0d17497 /termkey2.h
parent456093e4edf513d0f1509db048623f6e1b209112 (diff)
downloadtermo-e330d751a42def1e014227d5e39969af6e87591f.tar.gz
termo-e330d751a42def1e014227d5e39969af6e87591f.tar.xz
termo-e330d751a42def1e014227d5e39969af6e87591f.zip
Make mode 1015 and 1006 work, prepare for 1005
Diffstat (limited to 'termkey2.h')
-rw-r--r--termkey2.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/termkey2.h b/termkey2.h
index 60a3038..0fa0635 100644
--- a/termkey2.h
+++ b/termkey2.h
@@ -137,9 +137,14 @@ struct termkey_key
uint32_t codepoint; /* TERMKEY_TYPE_KEY */
int number; /* TERMKEY_TYPE_FUNCTION */
termkey_sym_t sym; /* TERMKEY_TYPE_KEYSYM */
- // TODO: rewrite this insanity
- char mouse[4]; /* TERMKEY_TYPE_MOUSE */
- /* opaque, see termkey_interpret_mouse() */
+
+ /* TERMKEY_TYPE_MODEREPORT */
+ /* opaque, see termkey_interpret_modereport() */
+ struct { char initial; int mode, value; } mode;
+
+ /* TERMKEY_TYPE_MOUSE */
+ /* opaque, see termkey_interpret_mouse() */
+ struct { uint16_t x, y, info; } mouse;
} code;
int modifiers;