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()
|
RendererStack::mousePoll()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WINDOWS
|
#ifdef Q_OS_WINDOWS
|
||||||
|
if (mouse_mode == 0) {
|
||||||
mouse_x_abs = mousedata.x_abs;
|
mouse_x_abs = mousedata.x_abs;
|
||||||
mouse_y_abs = mousedata.y_abs;
|
mouse_y_abs = mousedata.y_abs;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
mouse_x = mousedata.deltax;
|
mouse_x = mousedata.deltax;
|
||||||
|
@@ -373,6 +373,7 @@ WindowsRawInputFilter::mouse_handle(PRAWINPUT raw)
|
|||||||
void
|
void
|
||||||
WindowsRawInputFilter::mousePoll()
|
WindowsRawInputFilter::mousePoll()
|
||||||
{
|
{
|
||||||
|
if (mouse_mode >= 1) return;
|
||||||
if (mouse_capture || video_fullscreen) {
|
if (mouse_capture || video_fullscreen) {
|
||||||
static int b = 0;
|
static int b = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user