XInputSimulator/XInputSimulator/xinputsimulatorimpl.h

48 lines
1.5 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
#ifndef XINPUTSIMULATORIMPL_H
#define XINPUTSIMULATORIMPL_H
2013-07-16 19:39:22 +02:00
#include <iostream>
2013-07-14 13:52:02 +02:00
class XInputSimulatorImpl
{
public:
XInputSimulatorImpl();
virtual ~XInputSimulatorImpl(){}
virtual void mouseMoveTo(int x, int y) = 0;
virtual void mouseMoveRelative(int x, int y) = 0;
virtual void mouseDown(int button) = 0;
virtual void mouseUp(int button) = 0;
virtual void mouseClick(int button) = 0;
virtual void mouseScrollX(int length) = 0;
virtual void mouseScrollY(int length) = 0;
2013-07-16 19:39:22 +02:00
2013-07-14 13:52:02 +02:00
virtual void keyDown(int key) = 0;
virtual void keyUp(int key) = 0;
2013-07-16 19:39:22 +02:00
virtual void keyClick(int key) = 0;
2013-07-16 23:08:00 +02:00
virtual int charToKeyCode(char key_char) = 0;
2013-07-16 19:39:22 +02:00
virtual void keySequence(const std::string &sequence) = 0;
2013-07-14 13:52:02 +02:00
};
#endif // XINPUTSIMULATORIMPL_H