yuzu: Enable controller interaction in Controller Applet

This commit is contained in:
flodavid
2023-07-24 21:30:24 +02:00
parent 18000df5e9
commit b881949b6d
6 changed files with 104 additions and 7 deletions

View File

@ -34,6 +34,8 @@ class HIDCore;
enum class NpadStyleIndex : u8;
} // namespace Core::HID
class ControllerNavigation;
class QtControllerSelectorDialog final : public QDialog {
Q_OBJECT
@ -46,6 +48,8 @@ public:
int exec() override;
void keyPressEvent(QKeyEvent* evt) override;
private:
// Applies the current configuration.
void ApplyConfiguration();
@ -110,6 +114,8 @@ private:
Core::System& system;
ControllerNavigation* controller_navigation = nullptr;
// This is true if and only if all parameters are met. Otherwise, this is false.
// This determines whether the "OK" button can be clicked to exit the applet.
bool parameters_met{false};