aboutsummaryrefslogtreecommitdiffstats
path: root/input.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-11-13 12:02:35 +0000
committers-ol <s-ol@users.noreply.github.com>2019-11-13 12:02:47 +0000
commitb651f4dbcbec7eccfcb90ea2b23e28d988e36026 (patch)
treeaea6d2ef5f3420bde3fc7fe5c0727d6bd85fb8b3 /input.moon
parentadd input.slider (diff)
downloadwatch-cad-b651f4dbcbec7eccfcb90ea2b23e28d988e36026.tar.gz
watch-cad-b651f4dbcbec7eccfcb90ea2b23e28d988e36026.zip
add line, arrow; hover events
Diffstat (limited to 'input.moon')
-rw-r--r--input.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/input.moon b/input.moon
index 3b18880..fe23fa3 100644
--- a/input.moon
+++ b/input.moon
@@ -20,6 +20,7 @@ class Input
return 'down' if @key_down key
return 'up' if @key_up key
return 'held' if @key_held key
+ return 'hover'
mouse_pos: => @mouse
mouse_delta: => @mouse - @last_mouse