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 b40e453 commit 7f1ff53Copy full SHA for 7f1ff53
README.md
@@ -5,8 +5,10 @@ Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mous
5
####How to use
6
For a detailed example see main.cpp
7
```cpp
8
-XInputSimulator &sim = XInputSimulator::getInstance();
9
-sim.mouseMoveTo(1,2);
10
-sim.mouseClick(1);
+ sim.mouseMoveTo(500,400); //set mouse to screen cords 500x400
+ sim.mouseMoveRelative(400, -100); //move frome there 400px in x to the right and -100px in y upwards
+ 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
13
```
14
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)
0 commit comments