yuzu: Add ring controller test button
This commit is contained in:
parent
527dad7097
commit
5cb437703f
10 changed files with 382 additions and 186 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue