aboutsummaryrefslogtreecommitdiff
path: root/termkey.h.in
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-11-24 01:22:55 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2009-11-24 01:22:55 +0000
commit2ba9849ab536645f621e311f7afa48e5199055d1 (patch)
treea8f9e1e7c75aedf3fb2488b58731002f8fe854c3 /termkey.h.in
parent513e0ac59bf1b2d381cac2202b45236e7f751c3e (diff)
downloadtermo-2ba9849ab536645f621e311f7afa48e5199055d1.tar.gz
termo-2ba9849ab536645f621e311f7afa48e5199055d1.tar.xz
termo-2ba9849ab536645f621e311f7afa48e5199055d1.zip
Public interface for MOUSE support
Diffstat (limited to 'termkey.h.in')
-rw-r--r--termkey.h.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/termkey.h.in b/termkey.h.in
index eebfeff..ae11856 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -89,7 +89,8 @@ typedef enum {
typedef enum {
TERMKEY_TYPE_UNICODE,
TERMKEY_TYPE_FUNCTION,
- TERMKEY_TYPE_KEYSYM
+ TERMKEY_TYPE_KEYSYM,
+ TERMKEY_TYPE_MOUSE,
} TermKeyType;
typedef enum {
@@ -111,6 +112,10 @@ typedef struct {
long codepoint; // TERMKEY_TYPE_UNICODE
int number; // TERMKEY_TYPE_FUNCTION
TermKeySym sym; // TERMKEY_TYPE_KEYSYM
+ struct {
+ short buttons;
+ short col, line;
+ } mouse; // TERMKEY_TYPE_MOUSE
} code;
int modifiers;