-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhandler.go
More file actions
47 lines (38 loc) · 808 Bytes
/
handler.go
File metadata and controls
47 lines (38 loc) · 808 Bytes
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
package api
import "image"
type Handler interface {
}
type IconHandler interface {
Handler
Start(key KeyConfigV3, info StreamDeckInfoV1, callback func(image image.Image))
IsRunning() bool
SetRunning(running bool)
Stop()
}
type KeyHandler interface {
Handler
Key(key KeyConfigV3, info StreamDeckInfoV1)
}
type LcdHandler interface {
Handler
Start(key KnobConfigV3, info StreamDeckInfoV1, callback func(image image.Image))
IsRunning() bool
SetRunning(running bool)
Stop()
}
type KnobOrTouchHandler interface {
Handler
Input(key KnobConfigV3, info StreamDeckInfoV1, event InputEvent)
}
type InputEventType uint8
const (
KNOB_CCW InputEventType = iota
KNOB_CW
KNOB_PRESS
SCREEN_SHORT_TAP
SCREEN_LONG_TAP
)
type InputEvent struct {
EventType InputEventType
RotateNotches uint8
}