qt: Poll from Qt code instead of RawInput code on Windows when absolute mode is used
Fixes tablet input
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user