移动 / Move Args: x: x 坐标 / x coordinate y: y 坐标 / y coordinate contact: 触点编号 (Adb 控制器: 手指编号; Win32 控制器: 鼠标按键 0:左键, 1:右键, 2:中键) Contact number (Adb controller: finger number; Win32 controller: mouse button 0:left, 1:right, 2:middle)
(self, x: int, y: int, contact: int = 0, pressure: int = 1)
| 211 | return self._gen_ctrl_job(ctrl_id) |
| 212 | |
| 213 | def post_touch_move(self, x: int, y: int, contact: int = 0, pressure: int = 1) -> Job: |
| 214 | """移动 / Move |
| 215 | |
| 216 | Args: |
| 217 | x: x 坐标 / x coordinate |
| 218 | y: y 坐标 / y coordinate |
| 219 | contact: 触点编号 (Adb 控制器: 手指编号; Win32 控制器: 鼠标按键 0:左键, 1:右键, 2:中键) |
| 220 | Contact number (Adb controller: finger number; Win32 controller: mouse button 0:left, |
| 221 | 1:right, 2:middle) |
| 222 | pressure: 触点力度 / Contact pressure |
| 223 | |
| 224 | Returns: |
| 225 | Job: 作业对象 / Job object |
| 226 | """ |
| 227 | ctrl_id = Library.framework().MaaControllerPostTouchMove(self._handle, contact, x, y, pressure) |
| 228 | return self._gen_ctrl_job(ctrl_id) |
| 229 | |
| 230 | def post_touch_up(self, contact: int = 0) -> Job: |
| 231 | """抬起 / Touch up |
nothing calls this directly
no test coverage detected