MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _process_drag

Method _process_drag

editor/scene/3d/node_3d_editor_plugin.cpp:202–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void 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
213void ViewportNavigationControl::gui_input(const Ref<InputEvent> &p_event) {
214 // Mouse events

Callers

nothing calls this directly

Calls 4

get_mouse_modeMethod · 0.80
set_mouse_modeMethod · 0.80
_nav_orbitMethod · 0.80
distance_toMethod · 0.45

Tested by

no test coverage detected