Skip to content

Commit 1340ac2

Browse files
committed
Merge branch 'master' of github.com:pythoneer/XInputSimulator
2 parents 51cc89f + baf1c69 commit 1340ac2

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

.travis.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1+
language: cpp
2+
3+
compiler: g++
4+
15
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
47
- 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

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ XInputSimulator
22
===============
33

44
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)
57

68
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)
79
####How to use
@@ -16,12 +18,24 @@ For a detailed example see main.cpp
1618
sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press
1719
```
1820

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
2022
building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h
2123
building for Win use User32.lib | include Windows.h
2224

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+
```
2427
>$ 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
2539

2640
####Status early Alpha
2741
2013-07-16: Linux, Mac and Win part with following functions

0 commit comments

Comments
 (0)