File tree Expand file tree Collapse file tree 2 files changed +33
-20
lines changed Expand file tree Collapse file tree 2 files changed +33
-20
lines changed Original file line number Diff line number Diff line change
1
+ language : cpp
2
+
3
+ compiler : g++
4
+
1
5
before_install :
2
- - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
3
- - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
6
+ - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
4
7
- sudo apt-get update -qq
5
- - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev libx11-dev libxtst-dev
6
- - sudo apt-get install gcc-4.8
7
- - sudo apt-get install g++-4.8
8
- - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
9
- - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
10
- - sudo update-alternatives --config gcc
11
- - sudo update-alternatives --config g++
12
- - sudo apt-get update
13
- - sudo apt-get upgrade -y
14
- - sudo apt-get dist-upgrade
15
- script :
16
- - g++ --version
17
- - gcc --version
18
- - qmake -qt=qt5 -v
19
- - qmake -qt=qt5 XInputSimulator/
20
- - make
8
+
9
+ install :
10
+ - sudo apt-get install -qq g++-4.8
11
+ - export CXX="g++-4.8"
12
+
13
+ before_script :
14
+ - sudo apt-get install -qq sqlite3 libx11-dev libxtst-dev
15
+ - mkdir build
16
+ - cd build
17
+ - cmake ../XInputSimulator/
18
+
19
+ script : make
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ XInputSimulator
2
2
===============
3
3
4
4
Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mouse moves/clicks/scrolls or keyboard keystrokes.
5
+
6
+ [ ![ Build Status] ( https://travis-ci.org/pythoneer/XInputSimulator.svg?branch=master )] ( https://travis-ci.org/pythoneer/XInputSimulator )
5
7
6
8
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/ )
7
9
####How to use
@@ -16,12 +18,24 @@ For a detailed example see main.cpp
16
18
sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); // release the mousebutton press
17
19
```
18
20
19
- building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h
21
+ building for Linux use -lX11 -lXtst | include X11/Xlib.h X11/Xutil.h
20
22
building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h
21
23
building for Win use User32.lib | include Windows.h
22
24
23
- if you wanna use qmake i provided a XInputSimulator.pro file – simply type:
25
+ if you wanna use qmake i provide a XInputSimulator.pro file – simply type:
26
+ ```
24
27
>$ qmake XInputSimulator.pro && make
28
+ ```
29
+
30
+ for cmake there is a CMakeLists.txt file -simply type:
31
+ ```
32
+ >$ mkdir build
33
+ >$ cd build
34
+ >$ cmake ../XInputSimulator/
35
+ >$ make
36
+ ```
37
+
38
+ for xcode there is an xcode project file
25
39
26
40
####Status early Alpha
27
41
2013-07-16: Linux, Mac and Win part with following functions
You can’t perform that action at this time.
0 commit comments