summaryrefslogtreecommitdiff
path: root/input/wrapper-empty.go
diff options
context:
space:
mode:
authorDmitrii Morozov <snoopdesigns@gmail.com>2024-03-27 20:38:37 +0100
committerDmitrii Morozov <snoopdesigns@gmail.com>2024-03-27 20:38:37 +0100
commitfd96ce3403f0bf98c215152e0d8424673c9db7e6 (patch)
tree5c5e4d8fb0db544a3d379015d62da09c410e035d /input/wrapper-empty.go
parent89e22871b2e44b374af312d1bf3fdfd83774ce16 (diff)
Refactoring
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
+}