get_features() 返回 MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, 上层 ControllerAgent 会使用 touch_down/touch_up 替代 click/swipe
| 201 | // get_features() 返回 MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, |
| 202 | // 上层 ControllerAgent 会使用 touch_down/touch_up 替代 click/swipe |
| 203 | bool MtouchHelper::click(int x, int y) |
| 204 | { |
| 205 | LogError << type_name() |
| 206 | << "deprecated: get_features() returns MaaControllerFeature_UseMouseDownAndUpInsteadOfClick, " |
| 207 | "use touch_down/touch_up instead" |
| 208 | << VAR(x) << VAR(y); |
| 209 | |
| 210 | return false; |
| 211 | } |
| 212 | |
| 213 | bool MtouchHelper::swipe(int x1, int y1, int x2, int y2, int duration) |
| 214 | { |
nothing calls this directly
no outgoing calls
no test coverage detected