XInputSimulator/XInputSimulator/xinputsimularotimplwin.h

52 lines
1.5 KiB
C
Raw Normal View History

2013-07-16 11:43:49 +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
#ifndef XINPUTSIMULAROTIMPLWIN_H
#define XINPUTSIMULAROTIMPLWIN_H
2013-07-16 11:50:13 +02:00
#include "xinputsimulatorimpl.h"
class XInputSimularotImplWin: public XInputSimulatorImpl
2013-07-16 11:43:49 +02:00
{
2013-07-16 11:50:13 +02:00
private:
int currentX;
int currentY;
void initCurrentMousePosition();
2013-07-16 11:50:13 +02:00
2013-07-16 11:43:49 +02:00
public:
XInputSimularotImplWin();
2013-07-16 11:50:13 +02:00
~XInputSimularotImplWin(){}
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 11:43:49 +02:00
};
#endif // XINPUTSIMULAROTIMPLWIN_H
#endif //win