From 814c25f58e19050144b05f52837bc064b77254a0 Mon Sep 17 00:00:00 2001 From: pythoneer Date: Tue, 16 Jul 2013 17:59:38 +0200 Subject: [PATCH] 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