| 221 | } |
| 222 | |
| 223 | void handle_pointer_motion(wf::pointf_t pointer_position, uint32_t time_ms) override |
| 224 | { |
| 225 | if (current_view && current_view->get_output()) |
| 226 | { |
| 227 | auto og = current_view->get_output()->get_layout_geometry(); |
| 228 | pointer_position.x -= og.x; |
| 229 | pointer_position.y -= og.y; |
| 230 | } |
| 231 | |
| 232 | if (current_mode == mode::ROT_2D) |
| 233 | { |
| 234 | motion_2d(pointer_position.x, pointer_position.y); |
| 235 | } else if (current_mode == mode::ROT_3D) |
| 236 | { |
| 237 | motion_3d(pointer_position.x, pointer_position.y); |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | void input_released() |
| 242 | { |
nothing calls this directly
no test coverage detected