| 200 | } |
| 201 | |
| 202 | void ViewportNavigationControl::_process_drag(int p_index, Vector2 p_position, Vector2 p_relative_position) { |
| 203 | if (focused_index == p_index) { |
| 204 | if (Input::get_singleton()->get_mouse_mode() == Input::MOUSE_MODE_VISIBLE) { |
| 205 | Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_CAPTURED); |
| 206 | focused_mouse_start = p_position; |
| 207 | } |
| 208 | focused_pos += p_relative_position; |
| 209 | queue_redraw(); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | void ViewportNavigationControl::gui_input(const Ref<InputEvent> &p_event) { |
| 214 | // Mouse events |
nothing calls this directly
no test coverage detected