qt: Poll from Qt code instead of RawInput code on Windows when absolute mode is used

Fixes tablet input
This commit is contained in:
Cacodemon345
2023-02-24 16:50:38 +06:00
parent 4d4fdddfc6
commit 0395ea02a1
2 changed files with 6 additions and 3 deletions

View File

@@ -145,9 +145,11 @@ void
RendererStack::mousePoll()
{
#ifdef Q_OS_WINDOWS
mouse_x_abs = mousedata.x_abs;
mouse_y_abs = mousedata.y_abs;
return;
if (mouse_mode == 0) {
mouse_x_abs = mousedata.x_abs;
mouse_y_abs = mousedata.y_abs;
return;
}
#endif
#ifndef __APPLE__
mouse_x = mousedata.deltax;

View File

@@ -373,6 +373,7 @@ WindowsRawInputFilter::mouse_handle(PRAWINPUT raw)
void
WindowsRawInputFilter::mousePoll()
{
if (mouse_mode >= 1) return;
if (mouse_capture || video_fullscreen) {
static int b = 0;