XInputSimulator/XInputSimulator/xinputsimulator.cpp

87 lines
2.1 KiB
C++
Raw Normal View History

2013-07-14 14:25:29 +02:00
// Copyright 2013 Dustin Bensing
// This file is part of XInputSimulator.
// XInputSimulator is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundation, either version 3 of the License, or
2013-07-14 14:28:53 +02:00
// any later version.
2013-07-14 14:25:29 +02:00
// XInputSimulator is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser Public License for more details.
// You should have received a copy of the GNU Lesser Public License
// along with XInputSimulator. If not, see <http://www.gnu.org/licenses/>.
2013-07-14 13:52:02 +02:00
#include "xinputsimulator.h"
2013-07-16 19:39:22 +02:00
//*************************************************//
//******************M O U S E**********************//
//*************************************************//
2013-07-14 13:52:02 +02:00
void XInputSimulator::mouseMoveTo(int x, int y)
{
implementation->mouseMoveTo(x, y);
}
void XInputSimulator::mouseMoveRelative(int x, int y)
{
implementation->mouseMoveRelative(x, y);
}
void XInputSimulator::mouseDown(int button)
{
implementation->mouseDown(button);
}
void XInputSimulator::mouseUp(int button)
{
implementation->mouseUp(button);
}
void XInputSimulator::mouseClick(int button)
{
implementation->mouseClick(button);
}
void XInputSimulator::mouseScrollX(int length)
{
implementation->mouseScrollX(length);
}
void XInputSimulator::mouseScrollY(int length)
{
implementation->mouseScrollY(length);
}
2013-07-16 19:39:22 +02:00
//*************************************************//
//***************K E Y B O A R D*******************//
//*************************************************//
2013-07-14 13:52:02 +02:00
void XInputSimulator::keyDown(int key)
{
implementation->keyDown(key);
}
void XInputSimulator::keyUp(int key)
{
implementation->keyUp(key);
}
2013-07-16 19:39:22 +02:00
void XInputSimulator::keyClick(int key)
{
implementation->keyClick(key);
}
2013-07-16 23:08:00 +02:00
int XInputSimulator::charToKeyCode(char key_char)
2013-07-16 19:39:22 +02:00
{
2013-07-16 23:08:00 +02:00
return implementation->charToKeyCode(key_char);
2013-07-16 19:39:22 +02:00
}
void XInputSimulator::keySequence(const std::string &sequence)
{
implementation->keySequence(sequence);
}