Add Input::get_current_cursor_shape
[Clean up] Removed unused/unnecessary methods.
This commit is contained in:
@ -384,8 +384,6 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
outside = true;
|
||||
if (main_loop && mouse_mode != MOUSE_MODE_CAPTURED)
|
||||
main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_EXIT);
|
||||
if (input)
|
||||
input->set_mouse_in_window(false);
|
||||
|
||||
} break;
|
||||
case WM_INPUT: {
|
||||
@ -480,8 +478,6 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
if (main_loop && mouse_mode != MOUSE_MODE_CAPTURED)
|
||||
main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_ENTER);
|
||||
if (input)
|
||||
input->set_mouse_in_window(true);
|
||||
|
||||
CursorShape c = cursor_shape;
|
||||
cursor_shape = CURSOR_MAX;
|
||||
@ -2299,6 +2295,11 @@ void OS_Windows::set_cursor_shape(CursorShape p_shape) {
|
||||
cursor_shape = p_shape;
|
||||
}
|
||||
|
||||
OS::CursorShape OS_Windows::get_cursor_shape() const {
|
||||
|
||||
return cursor_shape;
|
||||
}
|
||||
|
||||
void OS_Windows::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
|
||||
if (p_cursor.is_valid()) {
|
||||
Ref<Texture> texture = p_cursor;
|
||||
|
||||
Reference in New Issue
Block a user