From b881949b6de1c7359cb79e2ba7c9aa2e104c1885 Mon Sep 17 00:00:00 2001 From: flodavid Date: Mon, 24 Jul 2023 21:30:24 +0200 Subject: yuzu: Enable controller interaction in Controller Applet --- src/yuzu/applets/qt_controller.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/yuzu/applets/qt_controller.h') diff --git a/src/yuzu/applets/qt_controller.h b/src/yuzu/applets/qt_controller.h index 2fdc35857..7f0673d06 100644 --- a/src/yuzu/applets/qt_controller.h +++ b/src/yuzu/applets/qt_controller.h @@ -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}; -- cgit v1.2.3