mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +03:00
[Windows] Fix modifier keys when using tablet input.
This commit is contained in:
@@ -2037,8 +2037,8 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
Ref<InputEventMouseMotion> mm;
|
||||
mm.instance();
|
||||
mm->set_window_id(window_id);
|
||||
mm->set_control(GetKeyState(VK_CONTROL) != 0);
|
||||
mm->set_shift(GetKeyState(VK_SHIFT) != 0);
|
||||
mm->set_control(GetKeyState(VK_CONTROL) < 0);
|
||||
mm->set_shift(GetKeyState(VK_SHIFT) < 0);
|
||||
mm->set_alt(alt_mem);
|
||||
|
||||
mm->set_pressure(windows[window_id].last_pressure);
|
||||
@@ -2180,8 +2180,8 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
mm->set_tilt(Vector2((float)pen_info.tiltX / 90, (float)pen_info.tiltY / 90));
|
||||
}
|
||||
|
||||
mm->set_control((wParam & MK_CONTROL) != 0);
|
||||
mm->set_shift((wParam & MK_SHIFT) != 0);
|
||||
mm->set_control(GetKeyState(VK_CONTROL) < 0);
|
||||
mm->set_shift(GetKeyState(VK_SHIFT) < 0);
|
||||
mm->set_alt(alt_mem);
|
||||
|
||||
mm->set_button_mask(last_button_state);
|
||||
|
||||
Reference in New Issue
Block a user