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

Method warp_mouse

core/input/input.cpp:1075–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075void Input::warp_mouse(const Vector2 &p_position) {
1076 warp_mouse_func(p_position);
1077}
1078
1079Point2 Input::warp_mouse_motion(const Ref<InputEventMouseMotion> &p_motion, const Rect2 &p_rect) {
1080 const Point2 rel_sign(p_motion->get_relative().x >= 0.0f ? 1 : -1, p_motion->get_relative().y >= 0.0 ? 1 : -1);

Callers 6

_process_clickMethod · 0.45
gui_inputMethod · 0.45
_reorder_button_upMethod · 0.45
_grab_endMethod · 0.45
_draw_spin_sliderMethod · 0.45
_notificationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected