aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/yuzu/applets/qt_controller.h
diff options
context:
space:
mode:
authorliamwhite <[email protected]>2023-10-11 09:23:52 -0400
committerGitHub <[email protected]>2023-10-11 09:23:52 -0400
commitb50ce645ace5d6bd665aacf3db18d0aba0663a5b (patch)
tree437248d7b5b9a1281312a3ea134642d994067ada /src/yuzu/applets/qt_controller.h
parentb6d19329ac710f82c424b433dcd108adad3da9b1 (diff)
parentb881949b6de1c7359cb79e2ba7c9aa2e104c1885 (diff)
downloadyuzu-android-b50ce645ace5d6bd665aacf3db18d0aba0663a5b.tar.gz
yuzu-android-b50ce645ace5d6bd665aacf3db18d0aba0663a5b.zip
Merge pull request #11144 from flodavid/master
Enable controller interaction in Controller Applet
Diffstat (limited to 'src/yuzu/applets/qt_controller.h')
-rw-r--r--src/yuzu/applets/qt_controller.h6
1 files changed, 6 insertions, 0 deletions
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};