diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-09-18 09:44:59 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-09-18 09:56:31 +0200 |
commit | 70499b8cbd58df1b2779aa076ddab21d10584665 (patch) | |
tree | a7e19c93853430195e3dc9be92e3ad379880e550 | |
parent | Merge pull request #4647 from Morph1984/readd-context-menu (diff) | |
download | yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar.gz yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar.bz2 yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar.lz yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar.xz yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.tar.zst yuzu-70499b8cbd58df1b2779aa076ddab21d10584665.zip |
-rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index 8c5921eb6..698cb1940 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp @@ -290,7 +290,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i analog_map_range_spinbox = {ui->spinboxLStickRange, ui->spinboxRStickRange}; const auto ConfigureButtonClick = [&](QPushButton* button, Common::ParamPackage* param, - int default_val) { + int default_val, InputCommon::Polling::DeviceType type) { connect(button, &QPushButton::clicked, [=, this] { HandleClick( button, @@ -310,7 +310,7 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i } *param = std::move(params); }, - InputCommon::Polling::DeviceType::Button); + type); }); }; @@ -322,7 +322,8 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i } ConfigureButtonClick(button_map[button_id], &buttons_param[button_id], - Config::default_buttons[button_id]); + Config::default_buttons[button_id], + InputCommon::Polling::DeviceType::Button); button->setContextMenuPolicy(Qt::CustomContextMenu); @@ -344,7 +345,8 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i } ConfigureButtonClick(motion_map[motion_id], &motions_param[motion_id], - Config::default_motions[motion_id]); + Config::default_motions[motion_id], + InputCommon::Polling::DeviceType::Motion); button->setContextMenuPolicy(Qt::CustomContextMenu); @@ -393,7 +395,8 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i // Handle clicks for the modifier buttons as well. ConfigureButtonClick(mod_buttons[analog_id], &stick_mod_param[analog_id], - Config::default_stick_mod[analog_id]); + Config::default_stick_mod[analog_id], + InputCommon::Polling::DeviceType::Button); mod_buttons[analog_id]->setContextMenuPolicy(Qt::CustomContextMenu); |