summaryrefslogtreecommitdiff
path: root/input/wrapper-empty.go
diff options
context:
space:
mode:
Diffstat (limited to 'input/wrapper-empty.go')
-rw-r--r--input/wrapper-empty.go49
1 files changed, 49 insertions, 0 deletions
diff --git a/input/wrapper-empty.go b/input/wrapper-empty.go
new file mode 100644
index 0000000..5459a20
--- /dev/null
+++ b/input/wrapper-empty.go
@@ -0,0 +1,49 @@
+package input
+
+import (
+ "fmt"
+)
+
+type KeyboardEmptyWrapper struct {
+}
+
+type MouseEmptyWrapper struct {
+}
+
+func (mockKeyboard KeyboardEmptyWrapper) KeyDown(key int) error {
+ fmt.Println("Key down")
+ return nil
+}
+
+func (mockKeyboard KeyboardEmptyWrapper) KeyUp(key int) error {
+ fmt.Println("Key up")
+ return nil
+}
+
+func (mockKeyboard KeyboardEmptyWrapper) Close() error {
+ return nil
+}
+
+func (mockMouse MouseEmptyWrapper) Move(x, y int32) error {
+ //fmt.Println("Move")
+ return nil
+}
+
+func (mockMouse MouseEmptyWrapper) LeftPress() error {
+ fmt.Println("Left press")
+ return nil
+}
+
+func (mockMouse MouseEmptyWrapper) LeftRelease() error {
+ fmt.Println("Left release")
+ return nil
+}
+
+func (mockMouse MouseEmptyWrapper) Wheel(horizontal bool, delta int32) error {
+ fmt.Println("Wheel")
+ return nil
+}
+
+func (mockMouse MouseEmptyWrapper) Close() error {
+ return nil
+}