You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #95155 from bruvzg/win_pen_checks
[Windows] Reject `WM_POINTER(UP/DOWN)` messages for non pen pointer type.
This commit is contained in:
@@ -4253,6 +4253,16 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t pointer_id = LOWORD(wParam);
|
||||||
|
POINTER_INPUT_TYPE pointer_type = PT_POINTER;
|
||||||
|
if (!win8p_GetPointerType(pointer_id, &pointer_type)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pointer_type != PT_PEN) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
Ref<InputEventMouseButton> mb;
|
Ref<InputEventMouseButton> mb;
|
||||||
mb.instantiate();
|
mb.instantiate();
|
||||||
mb->set_window_id(window_id);
|
mb->set_window_id(window_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user