mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-30 19:16:41 -08:00
fix sdvx windowed mode mouse emulation double register
This commit is contained in:
1 parent
c83496776e
commit
63bfef7c69
1 file changed
+8
@@ -7,6 +7,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "transform.h"
|
#include "transform.h"
|
||||||
|
|
||||||
|
#include "hooks/graphics/graphics.h"
|
||||||
#include "touch/touch.h"
|
#include "touch/touch.h"
|
||||||
#include "util/logging.h"
|
#include "util/logging.h"
|
||||||
|
|
||||||
@@ -141,6 +142,13 @@ namespace nativetouch::inject {
|
|||||||
end_mouse_contact(window);
|
end_mouse_contact(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SDVX accepts both mouse and touch on its windowed subscreen, causing duplicate input.
|
||||||
|
if (GRAPHICS_WINDOWED &&
|
||||||
|
window == SDVX_SUBSCREEN_WINDOW &&
|
||||||
|
message >= WM_MOUSEFIRST && message <= WM_MOUSELAST) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user