summaryrefslogtreecommitdiff
path: root/input/wrapper-empty.go
blob: 5459a209eb8cf3b87664a9346512d446dc8732da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
}