Rename [gs]et_pos to [gs]et_position for Controls
Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
This commit is contained in:
committed by
Rémi Verschelde
parent
1c480698ce
commit
8589ca3903
@ -402,7 +402,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
SetCursorPos(pos.x, pos.y);
|
||||
}
|
||||
|
||||
input->set_mouse_pos(Point2(mm.x, mm.y));
|
||||
input->set_mouse_position(Point2(mm.x, mm.y));
|
||||
mm.speed_x = input->get_last_mouse_speed().x;
|
||||
mm.speed_y = input->get_last_mouse_speed().y;
|
||||
|
||||
@ -1318,7 +1318,7 @@ void OS_Windows::warp_mouse_pos(const Point2 &p_to) {
|
||||
}
|
||||
}
|
||||
|
||||
Point2 OS_Windows::get_mouse_pos() const {
|
||||
Point2 OS_Windows::get_mouse_position() const {
|
||||
|
||||
return Point2(old_x, old_y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user