diff options
author | FearlessTobi <thm.frey@gmail.com> | 2020-04-05 07:14:35 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-04-05 07:14:35 +0200 |
commit | fb8afee077d72d27183af1c3843f4e16c647308c (patch) | |
tree | 85f9eee82622f4067d60c176ce94dbd611c3dde8 | |
parent | ci: Update to Windows Server 2019 and Visual Studio 2019 (diff) | |
download | yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar.gz yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar.bz2 yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar.lz yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar.xz yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.tar.zst yuzu-fb8afee077d72d27183af1c3843f4e16c647308c.zip |
-rw-r--r-- | src/yuzu/configuration/configure_input_simple.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/configuration/configure_input_simple.cpp b/src/yuzu/configuration/configure_input_simple.cpp index ab3a11d30..0e0e8f113 100644 --- a/src/yuzu/configuration/configure_input_simple.cpp +++ b/src/yuzu/configuration/configure_input_simple.cpp @@ -35,6 +35,7 @@ void CallConfigureDialog(ConfigureInputSimple* caller, Args&&... args) { // - Open any dialogs // - Block in any way +constexpr std::size_t PLAYER_0_INDEX = 0; constexpr std::size_t HANDHELD_INDEX = 8; void HandheldOnProfileSelect() { @@ -53,8 +54,8 @@ void HandheldOnProfileSelect() { } void DualJoyconsDockedOnProfileSelect() { - Settings::values.players[0].connected = true; - Settings::values.players[0].type = Settings::ControllerType::DualJoycon; + Settings::values.players[PLAYER_0_INDEX].connected = true; + Settings::values.players[PLAYER_0_INDEX].type = Settings::ControllerType::DualJoycon; for (std::size_t player = 1; player <= HANDHELD_INDEX; ++player) { Settings::values.players[player].connected = false; @@ -64,7 +65,7 @@ void DualJoyconsDockedOnProfileSelect() { Settings::values.keyboard_enabled = false; Settings::values.mouse_enabled = false; Settings::values.debug_pad_enabled = false; - Settings::values.touchscreen.enabled = false; + Settings::values.touchscreen.enabled = true; } // Name, OnProfileSelect (called when selected in drop down), OnConfigure (called when configure @@ -78,7 +79,7 @@ constexpr std::array<InputProfile, 3> INPUT_PROFILES{{ }}, {QT_TR_NOOP("Single Player - Dual Joycons - Docked"), DualJoyconsDockedOnProfileSelect, [](ConfigureInputSimple* caller) { - CallConfigureDialog<ConfigureInputPlayer>(caller, 1, false); + CallConfigureDialog<ConfigureInputPlayer>(caller, PLAYER_0_INDEX, false); }}, {QT_TR_NOOP("Custom"), [] {}, CallConfigureDialog<ConfigureInput>}, }}; |