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 0f88d28 commit 6aadc5aCopy full SHA for 6aadc5a
src/win32/mouse.c
@@ -20,6 +20,18 @@
20
: ((button) == RIGHT_BUTTON ? MOUSEEVENTF_RIGHTDOWN \
21
: MOUSEEVENTF_MIDDLEDOWN))
22
23
+int CalculateAbsoluteCoordinateX(int x)
24
+{
25
+ MMSize displaySize = getMainDisplaySize();
26
+ return (x * 65536) / displaySize.width;
27
+}
28
+
29
+int CalculateAbsoluteCoordinateY(int y)
30
31
32
+ return (y * 65536) / displaySize.height;
33
34
35
/**
36
* Move the mouse to a specific point.
37
* @param point The coordinates to move the mouse to (x, y).
0 commit comments