Fetch updated gamepad mappings each launch
This commit is contained in:
parent
aa4684077d
commit
e224a7f0c7
7 changed files with 106 additions and 1 deletions
20
app/settings/mappingfetcher.h
Normal file
20
app/settings/mappingfetcher.h
Normal 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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue