Merge branch 'master' of github.com:pythoneer/XInputSimulator
This commit is contained in:
commit
1340ac2f48
35
.travis.yml
35
.travis.yml
|
@ -1,20 +1,19 @@
|
||||||
|
language: cpp
|
||||||
|
|
||||||
|
compiler: g++
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||||
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
|
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev libx11-dev libxtst-dev
|
|
||||||
- sudo apt-get install gcc-4.8
|
install:
|
||||||
- sudo apt-get install g++-4.8
|
- sudo apt-get install -qq g++-4.8
|
||||||
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
|
- export CXX="g++-4.8"
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
|
|
||||||
- sudo update-alternatives --config gcc
|
before_script:
|
||||||
- sudo update-alternatives --config g++
|
- sudo apt-get install -qq sqlite3 libx11-dev libxtst-dev
|
||||||
- sudo apt-get update
|
- mkdir build
|
||||||
- sudo apt-get upgrade -y
|
- cd build
|
||||||
- sudo apt-get dist-upgrade
|
- cmake ../XInputSimulator/
|
||||||
script:
|
|
||||||
- g++ --version
|
script: make
|
||||||
- gcc --version
|
|
||||||
- qmake -qt=qt5 -v
|
|
||||||
- qmake -qt=qt5 XInputSimulator/
|
|
||||||
- make
|
|
||||||
|
|
18
README.md
18
README.md
|
@ -2,6 +2,8 @@ XInputSimulator
|
||||||
===============
|
===============
|
||||||
|
|
||||||
Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mouse moves/clicks/scrolls or keyboard keystrokes.
|
Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mouse moves/clicks/scrolls or keyboard keystrokes.
|
||||||
|
|
||||||
|
[![Build Status](https://travis-ci.org/pythoneer/XInputSimulator.svg?branch=master)](https://travis-ci.org/pythoneer/XInputSimulator)
|
||||||
|
|
||||||
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)
|
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)
|
||||||
####How to use
|
####How to use
|
||||||
|
@ -16,12 +18,24 @@ For a detailed example see main.cpp
|
||||||
sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press
|
sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press
|
||||||
```
|
```
|
||||||
|
|
||||||
building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h
|
building for Linux use -lX11 -lXtst | include X11/Xlib.h X11/Xutil.h
|
||||||
building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h
|
building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h
|
||||||
building for Win use User32.lib | include Windows.h
|
building for Win use User32.lib | include Windows.h
|
||||||
|
|
||||||
if you wanna use qmake i provided a XInputSimulator.pro file – simply type:
|
if you wanna use qmake i provide a XInputSimulator.pro file – simply type:
|
||||||
|
```
|
||||||
>$ qmake XInputSimulator.pro && make
|
>$ qmake XInputSimulator.pro && make
|
||||||
|
```
|
||||||
|
|
||||||
|
for cmake there is a CMakeLists.txt file -simply type:
|
||||||
|
```
|
||||||
|
>$ mkdir build
|
||||||
|
>$ cd build
|
||||||
|
>$ cmake ../XInputSimulator/
|
||||||
|
>$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
for xcode there is an xcode project file
|
||||||
|
|
||||||
####Status early Alpha
|
####Status early Alpha
|
||||||
2013-07-16: Linux, Mac and Win part with following functions
|
2013-07-16: Linux, Mac and Win part with following functions
|
||||||
|
|
Loading…
Reference in New Issue