AntiMicroX
Loading...
Searching...
No Matches
winsendinputeventhandler.h
Go to the documentation of this file.
1/* antimicro Gamepad to KB+M event mapper
2 * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef WINSENDINPUTEVENTHANDLER_H
19#define WINSENDINPUTEVENTHANDLER_H
20
21#include <QObject>
22
23#include "baseeventhandler.h"
24
25#include <joybuttonslot.h>
26
34{
35 Q_OBJECT
36 public:
37 explicit WinSendInputEventHandler(QObject *parent = 0);
38
39 virtual bool init() override;
40 virtual bool cleanup() override;
41 virtual void sendKeyboardEvent(JoyButtonSlot *slot, bool pressed) override;
42 virtual void sendMouseButtonEvent(JoyButtonSlot *slot, bool pressed) override;
43 virtual void sendMouseEvent(int xDis, int yDis) override;
44 virtual void sendMouseSpringEvent(int xDis, int yDis, int width, int height) override;
45 virtual void sendTextEntryEvent(QString maintext) override;
46
47 virtual QString getName() override;
48 virtual QString getIdentifier() override;
49
50 signals:
51
52 public slots:
53};
54
55#endif // WINSENDINPUTEVENTHANDLER_H
Base class for input event handlers.
Definition baseeventhandler.h:33
Represents action which can be performed after pressing button.
Definition joybuttonslot.h:38
Input event handler class for Windows.
Definition winsendinputeventhandler.h:34
virtual QString getName() override
Definition winsendinputeventhandler.cpp:110
virtual void sendMouseEvent(int xDis, int yDis) override
Move cursor to selected relative location (deltax delaty)
Definition winsendinputeventhandler.cpp:99
virtual void sendKeyboardEvent(JoyButtonSlot *slot, bool pressed) override
Definition winsendinputeventhandler.cpp:35
virtual bool init() override
Definition winsendinputeventhandler.cpp:31
virtual void sendMouseSpringEvent(int xDis, int yDis, int width, int height) override
Do nothing by default. Useful for child classes to define behavior.
Definition winsendinputeventhandler.cpp:114
virtual QString getIdentifier() override
Definition winsendinputeventhandler.cpp:112
virtual void sendTextEntryEvent(QString maintext) override
Definition winsendinputeventhandler.cpp:131
virtual void sendMouseButtonEvent(JoyButtonSlot *slot, bool pressed) override
Definition winsendinputeventhandler.cpp:55
virtual bool cleanup() override
Definition winsendinputeventhandler.cpp:33