Checkpoint
This commit is contained in:
54 files changed
+6855
-526
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package hardware
|
||||
|
||||
import "time"
|
||||
|
||||
type Input interface {
|
||||
Events() <-chan InputEvent
|
||||
}
|
||||
|
||||
type InputEvent interface {
|
||||
}
|
||||
|
||||
type (
|
||||
RotaryEvent struct {
|
||||
Time time.Time
|
||||
Input Input
|
||||
Delta int
|
||||
}
|
||||
|
||||
RotaryPressEvent struct {
|
||||
Time time.Time
|
||||
Input Input
|
||||
}
|
||||
|
||||
RotaryLongPressEvent struct {
|
||||
Time time.Time
|
||||
Input Input
|
||||
}
|
||||
)
|
||||
Reference in new issue
Block a user