mirror of
https://github.com/taigrr/adb.git
synced 2026-04-02 02:58:42 -07:00
update capture to compile
This commit is contained in:
16
capture.go
16
capture.go
@@ -34,9 +34,10 @@ func (s SequenceSleep) StartTime() time.Time{
|
|||||||
return time.Time{}
|
return time.Time{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s SequenceSwipe) StartTime() time.Time{
|
func (s SequenceSleep) EndTime() time.Time {
|
||||||
return s.Start
|
return time.Time{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type SequenceTap struct {
|
type SequenceTap struct {
|
||||||
X int
|
X int
|
||||||
Y int
|
Y int
|
||||||
@@ -52,9 +53,14 @@ func (s SequenceTap) Length() time.Duration {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s SequenceSwipe) StartTime() time.Time{
|
func (s SequenceTap) StartTime() time.Time {
|
||||||
return s.Start
|
return s.Start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s SequenceTap) EndTime() time.Time {
|
||||||
|
return s.End
|
||||||
|
}
|
||||||
|
|
||||||
type SequenceSwipe struct {
|
type SequenceSwipe struct {
|
||||||
X1 int
|
X1 int
|
||||||
Y1 int
|
Y1 int
|
||||||
@@ -73,6 +79,10 @@ func (s SequenceSwipe) StartTime() time.Time{
|
|||||||
return s.Start
|
return s.Start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s SequenceSwipe) EndTime() time.Time {
|
||||||
|
return s.End
|
||||||
|
}
|
||||||
|
|
||||||
func (s SequenceSwipe) Length() time.Duration {
|
func (s SequenceSwipe) Length() time.Duration {
|
||||||
return s.Duration
|
return s.Duration
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user