diff options
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; |