Skip to content

Commit 7f1ff53

Browse files
committed
Update README.md
1 parent b40e453 commit 7f1ff53

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mous
55
####How to use
66
For a detailed example see main.cpp
77
```cpp
8-
XInputSimulator &sim = XInputSimulator::getInstance();
9-
sim.mouseMoveTo(1,2);
10-
sim.mouseClick(1);
8+
sim.mouseMoveTo(500,400); //set mouse to screen cords 500x400
9+
sim.mouseMoveRelative(400, -100); //move frome there 400px in x to the right and -100px in y upwards
10+
sim.mouseDown(1); //press left mouse and hold
11+
sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down
12+
sim.mouseUp(1); //release the mousebutton press
1113
```
1214
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)

0 commit comments

Comments
 (0)