Qt: Support binding controller axes

This commit is contained in:
Connor McLaughlin
2020-02-18 00:06:28 +09:00
parent b7dfe06f74
commit 262331504f
3 changed files with 94 additions and 4 deletions

View File

@@ -124,6 +124,7 @@ private:
};
using InputButtonHandler = std::function<void(bool)>;
using InputAxisHandler = std::function<void(float)>;
class Thread : public QThread
{
@@ -146,6 +147,7 @@ private:
void updateControllerInputMap();
void updateHotkeyInputMap();
void addButtonToInputMap(const QString& binding, InputButtonHandler handler);
void addAxisToInputMap(const QString& binding, InputAxisHandler handler);
void createThread();
void stopThread();
void threadEntryPoint();