Skip to content

Commit ad2f299

Browse files
committed
Merge branch 'master' of github.com:pythoneer/XInputSimulator
2 parents dafd37c + 814c25f commit ad2f299

File tree

1 file changed

+8
-43
lines changed

1 file changed

+8
-43
lines changed

README.md

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,19 @@ 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
2020
building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h
2121
building for Win use User32.lib | include Windows.h
2222

23-
qmake
24-
```
25-
TEMPLATE = app
26-
CONFIG += console
27-
CONFIG -= app_bundle
28-
CONFIG -= qt
29-
CONFIG += c++11
30-
31-
SOURCES += main.cpp \
32-
xinputsimulatorimpl.cpp \
33-
xinputsimulator.cpp \
34-
xinputsimulatorimpllinux.cpp \
35-
notimplementedexception.cpp \
36-
xinputsimulatorimplmacos.cpp \
37-
xinputsimulatorimplwin.cpp
38-
39-
HEADERS += \
40-
xinputsimulator.h \
41-
xinputsimulatorimpl.h \
42-
xinputsimulatorimpllinux.h \
43-
notimplementedexception.h \
44-
xinputsimulatorimplmacos.h \
45-
xinputsimulatorimplwin.h
46-
47-
macx {
48-
# mac only
49-
LIBS += -framework ApplicationServices
50-
}
51-
unix:!macx{
52-
# linux only
53-
LIBS += -lX11
54-
}
55-
win32 {
56-
# windows only
57-
LIBS += "C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\User32.Lib"
58-
}
59-
```
23+
if you wanna use qmake i provided a XInputSimulator.pro file – simply type:
24+
>$ qmake XInputSimulator.pro && make
6025
6126
####Status early Alpha
6227
2013-07-16: Linux, Mac and Win part with following functions
@@ -70,4 +35,4 @@ mouseScrollY //up and down
7035
mouseScrollX //left an right
7136
```
7237

73-
be aware that some glitches might appear due to the early state of development. There is not much testing going on apart from the main.cpp. Feel free to file bugreports, wishes or patches :)
38+
be aware that some glitches might appear and the interface might be changing every minute due to the early state of development. There is not much testing going on apart from the main.cpp. Feel free to file bugreports, wishes or patches :)

0 commit comments

Comments
 (0)