AntiMicroX
Loading...
Searching...
No Matches
setjoystickxml.h
Go to the documentation of this file.
1/* antimicrox Gamepad to KB+M event mapper
2 * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
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 SETJOYSTICKXML_H
19#define SETJOYSTICKXML_H
20
21#include <QObject>
22
23class SetJoystick;
24class JoyAxisXml;
25class JoyButtonXml;
28
34class SetJoystickXml : public QObject
35{
37
38 public:
39 explicit SetJoystickXml(SetJoystick *setJoystick, QObject *parent = nullptr);
40
41 virtual void readConfig(QXmlStreamReader *xml);
42 virtual void writeConfig(QXmlStreamWriter *xml);
43
44 private:
46
47 // JoyDPadXml* joydpadXml;
50};
51
52#endif // SETJOYSTICKXML_H
Definition joyaxisxml.h:30
Definition joybuttonxml.h:28
Definition joydpadxml.h:27
SetJoystick XML serialization/deserialization helper class Reads data from the supplied SetJoystick o...
Definition setjoystickxml.h:35
virtual void writeConfig(QXmlStreamWriter *xml)
Serializes a SetJoystick object into the the given XML stream.
Definition setjoystickxml.cpp:144
JoyAxisXml * joyAxisXml
Definition setjoystickxml.h:48
JoyButtonXml * joyButtonXml
Definition setjoystickxml.h:49
SetJoystick * m_setJoystick
Definition setjoystickxml.h:45
virtual void readConfig(QXmlStreamReader *xml)
Deserializes the given XML stream into a SetJoystick object.
Definition setjoystickxml.cpp:50
A set of mapped events which can by switched by a controller event. Contains controller input objects...
Definition setjoystick.h:40