Skip to content

Commit 814c25f

Browse files
committed
Update README.md
1 parent 5c3ed24 commit 814c25f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ For a detailed example see main.cpp
99
```cpp
1010
XInputSimulator &sim = XInputSimulator::getInstance();
1111

12-
sim.mouseMoveTo(500,400); //set mouse to screen cords 500x400
13-
sim.mouseMoveRelative(400, -100); //move frome there 400px in x to the right and -100px in y upwards
14-
sim.mouseDown(1); //press left mouse and hold
15-
sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down
16-
sim.mouseUp(1); //release the mousebutton press
12+
sim.mouseMoveTo(500,400); //set mouse to screen cords 500x400
13+
sim.mouseMoveRelative(400, -100); //move frome there 400px in x to the right and -100px in y upwards
14+
sim.mouseDown(XInputSimulator::LEFT_MOUSE_BUTTON); //press left mouse and hold
15+
sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down
16+
sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press
1717
```
1818

1919
building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h

0 commit comments

Comments
 (0)