We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3634ba commit b3e18e4Copy full SHA for b3e18e4
src/win32/mouse.c
@@ -7,6 +7,15 @@
7
#define M_SQRT2 1.4142135623730950488016887 /* Fix for MSVC. */
8
#endif
9
10
+/**
11
+ * This constant is required as Windows divides the entire
12
+ * screen space into 65536 segments in both X and Y axes
13
+ * irrespective of resolution
14
+ * https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-mouseinput#remarks
15
+ */
16
+ #define ABSOLUTE_COORD_CONST 65536
17
+
18
19
#define MMMouseToMEventF(down, button) \
20
(down ? MMMouseDownToMEventF(button) : MMMouseUpToMEventF(button))
21
0 commit comments