From 16fa247d1617dd2e6a99908803e62ec7f3c8ff92 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Tue, 16 Jul 2013 17:40:23 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index aef40fe..4f02443 100644 --- a/README.md +++ b/README.md @@ -20,43 +20,8 @@ building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h building for Mac use -framework ApplicationServices | include ApplicationServices/ApplicationServices.h building for Win use User32.lib | include Windows.h -qmake -``` -TEMPLATE = app -CONFIG += console -CONFIG -= app_bundle -CONFIG -= qt -CONFIG += c++11 - -SOURCES += main.cpp \ - xinputsimulatorimpl.cpp \ - xinputsimulator.cpp \ - xinputsimulatorimpllinux.cpp \ - notimplementedexception.cpp \ - xinputsimulatorimplmacos.cpp \ - xinputsimulatorimplwin.cpp - -HEADERS += \ - xinputsimulator.h \ - xinputsimulatorimpl.h \ - xinputsimulatorimpllinux.h \ - notimplementedexception.h \ - xinputsimulatorimplmacos.h \ - xinputsimulatorimplwin.h - -macx { -# mac only - LIBS += -framework ApplicationServices -} -unix:!macx{ -# linux only - LIBS += -lX11 -} -win32 { -# windows only - LIBS += "C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\User32.Lib" -} -``` +if you wanna use qmake i provided a XInputSimulator.pro file – simply type: +>$ qmake XInputSimulator.pro && make ####Status early Alpha 2013-07-16: Linux, Mac and Win part with following functions From 5c3ed24ae060169ba03d2947056ec55430d20d5f Mon Sep 17 00:00:00 2001 From: pythoneer Date: Tue, 16 Jul 2013 17:53:21 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f02443..21f2cdc 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,4 @@ mouseScrollY //up and down mouseScrollX //left an right ``` -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 :) +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 :) From 814c25f58e19050144b05f52837bc064b77254a0 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Tue, 16 Jul 2013 17:59:38 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 21f2cdc..5b60739 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,11 @@ For a detailed example see main.cpp ```cpp XInputSimulator &sim = XInputSimulator::getInstance(); - 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 - sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down - sim.mouseUp(1); //release the mousebutton press + 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(XInputSimulator::LEFT_MOUSE_BUTTON); //press left mouse and hold + sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down + sim.mouseUp(XInputSimulator::LEFT_MOUSE_BUTTON); //release the mousebutton press ``` building for Linux use -lX11 | include X11/Xlib.h X11/Xutil.h