summaryrefslogtreecommitdiffstats
path: root/Event.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-30 17:14:06 +0100
committertv <tv@shackspace.de>2014-12-30 17:14:06 +0100
commitc2d510ad09e13586332981280c068d5c12075905 (patch)
tree8d4d66afbf9f806e429bc6f025aaf5288100ce5b /Event.hs
parent7dc742185ada3808946122225a21b1e0ebff2adf (diff)
add VT200 mouse support
Diffstat (limited to 'Event.hs')
-rw-r--r--Event.hs17
1 files changed, 13 insertions, 4 deletions
diff --git a/Event.hs b/Event.hs
index a0d43b7..f316c13 100644
--- a/Event.hs
+++ b/Event.hs
@@ -1,6 +1,4 @@
-module Event
- ( Event (..)
- ) where
+module Event where
import Trammel
@@ -8,7 +6,18 @@ import Trammel
data Event =
EFlash (Trammel String) |
EKey String |
- EMouse Char Int Int | -- TODO s/Char/..
+ EMouse MouseInfo |
EReload |
EResize Int Int
deriving Show
+
+
+data MouseInfo = MouseInfo
+ { mouseButton :: Int -- 0 = release
+ , mouseShift :: Bool
+ , mouseMeta :: Bool
+ , mouseControl :: Bool
+ , mouseX :: Int
+ , mouseY :: Int
+ }
+ deriving Show