Qt: Add config and implementation for basic controller input

This commit is contained in:
Connor McLaughlin
2020-01-02 16:13:03 +10:00
parent eb7659368e
commit b135b32159
15 changed files with 929 additions and 18 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <QtCore/QString>
#include <initializer_list>
#include <optional>
class QTableView;
@@ -9,4 +11,10 @@ namespace QtUtils {
/// remaining space.
void ResizeColumnsForTableView(QTableView* view, const std::initializer_list<int>& widths);
/// Returns a string identifier for a Qt key ID.
QString GetKeyIdentifier(int key);
/// Returns the integer Qt key ID for an identifier.
std::optional<int> GetKeyIdForIdentifier(const QString& key_identifier);
} // namespace QtUtils