summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_ringcon.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-12-26 12:49:49 -0600
committerNarr the Reg <juangerman-13@hotmail.com>2023-01-19 18:05:22 -0600
commit5cb437703fa441a08db295f8a916caedc3a581f2 (patch)
tree148c35e47d18462f0b8f8e116e2247b4cbfdbde2 /src/yuzu/configuration/configure_ringcon.h
parent527dad70976a158e94defc51707347e064a31099 (diff)
yuzu: Add ring controller test button
Diffstat (limited to 'src/yuzu/configuration/configure_ringcon.h')
-rw-r--r--src/yuzu/configuration/configure_ringcon.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_ringcon.h b/src/yuzu/configuration/configure_ringcon.h
index 6e693e0dd..b23c27906 100644
--- a/src/yuzu/configuration/configure_ringcon.h
+++ b/src/yuzu/configuration/configure_ringcon.h
@@ -42,6 +42,12 @@ private:
/// Restore all buttons to their default values.
void RestoreDefaults();
+ /// Sets current polling mode to ring input
+ void EnableRingController();
+
+ // Handles emulated controller events
+ void ControllerUpdate(Core::HID::ControllerTriggerType type);
+
/// Called when the button was pressed.
void HandleClick(QPushButton* button,
std::function<void(const Common::ParamPackage&)> new_input_setter,
@@ -80,5 +86,9 @@ private:
InputCommon::InputSubsystem* input_subsystem;
Core::HID::EmulatedController* emulated_controller;
+ bool is_ring_enabled{};
+ bool is_controller_set{};
+ int callback_key;
+
std::unique_ptr<Ui::ConfigureRingController> ui;
};