File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 29
29
: ((button) == RIGHT_BUTTON ? MOUSEEVENTF_RIGHTDOWN \
30
30
: MOUSEEVENTF_MIDDLEDOWN))
31
31
32
- int CalculateAbsoluteCoordinates (MMPoint point ) {
32
+ MMPoint CalculateAbsoluteCoordinates (MMPoint point ) {
33
33
MMSize displaySize = getMainDisplaySize ();
34
- return MMPointMake ((x / displaySize .width ) * ABSOLUTE_COORD_CONST , (y / displaySize .height ) * ABSOLUTE_COORD_CONST );
34
+ return MMPointMake ((point . x / displaySize .width ) * ABSOLUTE_COORD_CONST , (point . y / displaySize .height ) * ABSOLUTE_COORD_CONST );
35
35
}
36
36
37
37
/**
@@ -40,13 +40,13 @@ int CalculateAbsoluteCoordinates(MMPoint point) {
40
40
*/
41
41
void moveMouse (MMPoint point ) {
42
42
INPUT mouseInput ;
43
- POINT pointAbsolute = CalculateAbsoluteCoordinates (point );
43
+ MMPoint pointAbsolute = CalculateAbsoluteCoordinates (point );
44
44
mouseInput .type = INPUT_MOUSE ;
45
45
mouseInput .mi .dx = pointAbsolute .x ;
46
46
mouseInput .mi .dy = pointAbsolute .y ;
47
47
mouseInput .mi .mouseData = 0 ;
48
48
mouseInput .mi .time = 0 ;
49
- mouseInput .mi .dwFlags = MouseEventFlags . MOUSEEVENTF_MOVE | MouseEventFlags . MOUSEEVENTF_ABSOLUTE ;
49
+ mouseInput .mi .dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE ;
50
50
mouseInput .mi .dwExtraInfo = 0 ;
51
51
SendInput (1 , & mouseInput , sizeof (mouseInput ));
52
52
}
You can’t perform that action at this time.
0 commit comments