diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-10-13 23:36:14 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-10-13 23:39:15 +0200 |
commit | e330d751a42def1e014227d5e39969af6e87591f (patch) | |
tree | aab18e54d2a99f48bbc1a9492af17357a0d17497 /termkey2.h | |
parent | 456093e4edf513d0f1509db048623f6e1b209112 (diff) | |
download | termo-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.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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; |