refactor: move action options

This commit is contained in:
lilong.129
2025-05-25 00:15:18 +08:00
parent 97dad38b7b
commit 4ff2692f02
15 changed files with 230 additions and 230 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ func (hd *HDCDriver) TapAbsXY(x, y float64, opts ...option.ActionOption) error {
if err != nil {
return err
}
defer postHandler(hd, ACTION_TapAbsXY, actionOptions)
defer postHandler(hd, option.ACTION_TapAbsXY, actionOptions)
if actionOptions.Identifier != "" {
startTime := int(time.Now().UnixMilli())
@@ -191,7 +191,7 @@ func (hd *HDCDriver) Swipe(fromX, fromY, toX, toY float64, opts ...option.Action
if err != nil {
return err
}
defer postHandler(hd, ACTION_Swipe, actionOptions)
defer postHandler(hd, option.ACTION_Swipe, actionOptions)
duration := 200
if actionOptions.PressDuration > 0 {