函数:move 移动

函数功能:手指移动

函数方法

touch = touch:move(x,y)

参数 类型 必填 说明
x number 屏幕横坐标
y number 屏幕纵坐标

函数用例

--使用本函数库必须在脚本开头引用并将文件放到设备 lua 目录下
--此函数为触动精灵专用函数请勿用于积木编程
--仅支持 V1.2.7 以上版本的 TSLib 
require "TSLib"
touch():on(100,100):move(200,200):off()
--使用本函数库必须在脚本开头引用并将文件放到设备 lua 目录下
--仅支持 V1.3.3 以上版本的 TSLib 
require "TSLib"
local touch = touch(1) 
touch:on(100,100):move(200,200):off()

注意事项

  • 安卓设备点击、滑动函数无效可以换此函数再试下

  • 此函数为触动精灵专用函数请勿用于积木编程

Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""