XInputSimulator/XInputSimulator/xinputsimulatorimplwin.h

57 lines
1.7 KiB
C
Raw Permalink Normal View History

2013-07-16 14:03:21 +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
// any later version.
// 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/>.
#ifdef _WIN32
2013-07-16 14:00:12 +02:00
#ifndef XINPUTSIMULATORIMPLWIN_H
#define XINPUTSIMULATORIMPLWIN_H
2013-07-16 14:03:21 +02:00
#include "xinputsimulatorimpl.h"
2013-07-16 14:00:12 +02:00
class XInputSimulatorImplWin: public XInputSimulatorImpl
2013-07-16 14:03:21 +02:00
{
private:
int currentX;
int currentY;
void initCurrentMousePosition();
public:
2013-07-16 14:00:12 +02:00
XInputSimulatorImplWin();
~XInputSimulatorImplWin(){}
2013-07-16 14:03:21 +02:00
virtual void mouseMoveTo(int x, int y) override;
virtual void mouseMoveRelative(int x, int y) override;
virtual void mouseDown(int button) override;
virtual void mouseUp(int button) override;
virtual void mouseClick(int button) override;
virtual void mouseScrollX(int length) override;
virtual void mouseScrollY(int length) override;
virtual void keyDown(int key) override;
virtual void keyUp(int key) override;
2013-07-16 19:39:22 +02:00
virtual void keyClick(int key) override;
2013-07-16 23:08:00 +02:00
virtual int charToKeyCode(char key_char) override;
2013-07-16 19:39:22 +02:00
virtual void keySequence(const std::string &sequence) override;
2013-07-16 14:03:21 +02:00
};
2013-07-16 14:06:42 +02:00
2013-07-16 14:00:12 +02:00
#endif // XINPUTSIMULATORIMPLWIN_H
2013-07-16 14:03:21 +02:00
#endif //win