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:
20
capture.go
20
capture.go
@@ -30,13 +30,14 @@ func (s SequenceSleep) Length() time.Duration {
|
|||||||
return s.Duration
|
return s.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s SequenceSleep) StartTime() time.Time{
|
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
|
||||||
@@ -69,10 +75,14 @@ func (s SequenceSwipe) Play(d Device, ctx context.Context) error {
|
|||||||
return d.Swipe(ctx, s.X1, s.Y1, s.X2, s.Y2, s.Duration)
|
return d.Swipe(ctx, s.X1, s.Y1, s.X2, s.Y2, s.Duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s SequenceSwipe) StartTime() time.Time{
|
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