Fetch updated gamepad mappings each launch

This commit is contained in:
Cameron Gutman 2020-11-21 14:45:34 -06:00
commit e224a7f0c7
7 changed files with 106 additions and 1 deletions

View file

@ -0,0 +1,20 @@
#pragma once
#include <QObject>
#include <QNetworkAccessManager>
class MappingFetcher : public QObject
{
Q_OBJECT
public:
explicit MappingFetcher(QObject *parent = nullptr);
void start();
private slots:
void handleMappingListFetched(QNetworkReply* reply);
private:
QNetworkAccessManager m_Nam;
};