aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/interactive.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/interactive.go')
-rw-r--r--lib/ui/interactive.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ui/interactive.go b/lib/ui/interactive.go
new file mode 100644
index 00000000..8bdf592c
--- /dev/null
+++ b/lib/ui/interactive.go
@@ -0,0 +1,15 @@
+package ui
+
+import (
+ tb "github.com/nsf/termbox-go"
+)
+
+type Interactive interface {
+ // Returns true if the event was handled by this component
+ Event(event tb.Event) bool
+}
+
+type Simulator interface {
+ // Queues up the given input events for simulation
+ Simulate(events []tb.Event)
+}