| 137 | } |
| 138 | |
| 139 | bool InputAgent::click(int x, int y) |
| 140 | { |
| 141 | if (!active_unit_) { |
| 142 | LogError << "No available input method" << VAR(active_unit_); |
| 143 | return false; |
| 144 | } |
| 145 | |
| 146 | return active_unit_->click(x, y); |
| 147 | } |
| 148 | |
| 149 | bool InputAgent::swipe(int x1, int y1, int x2, int y2, int duration) |
| 150 | { |