From fd96ce3403f0bf98c215152e0d8424673c9db7e6 Mon Sep 17 00:00:00 2001 From: Dmitrii Morozov Date: Wed, 27 Mar 2024 20:38:37 +0100 Subject: Refactoring --- input/wrapper-empty.go | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 input/wrapper-empty.go (limited to 'input/wrapper-empty.go') 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 +} -- cgit v1.2.3