summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Morph2020-09-05 09:42:01 -0400
committerGravatar Morph2020-09-05 09:46:34 -0400
commit5b6268d26a178f8104c7075daf24df37147a202b (patch)
treea869445ef861705679cfba39fdfabf418e2ccf80 /src/core
parentMinor cleanup (diff)
downloadyuzu-5b6268d26a178f8104c7075daf24df37147a202b.tar.gz
yuzu-5b6268d26a178f8104c7075daf24df37147a202b.tar.xz
yuzu-5b6268d26a178f8104c7075daf24df37147a202b.zip
configure_input: Hook up the motion button and checkbox
This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp2
-rw-r--r--src/core/settings.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 510fa3071..b3b1a3a8a 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -389,7 +389,7 @@ void Controller_NPad::OnUpdate(const Core::Timing::CoreTiming& core_timing, u8*
389 // Try to read sixaxis sensor states 389 // Try to read sixaxis sensor states
390 std::array<MotionDevice, 2> motion_devices; 390 std::array<MotionDevice, 2> motion_devices;
391 391
392 if (sixaxis_sensors_enabled) { 392 if (sixaxis_sensors_enabled && Settings::values.motion_enabled) {
393 sixaxis_at_rest = true; 393 sixaxis_at_rest = true;
394 for (std::size_t e = 0; e < motion_devices.size(); ++e) { 394 for (std::size_t e = 0; e < motion_devices.size(); ++e) {
395 const auto& device = motions[i][e]; 395 const auto& device = motions[i][e];
diff --git a/src/core/settings.h b/src/core/settings.h
index 80f0d95a7..9834f44bb 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -152,6 +152,7 @@ struct Values {
152 152
153 bool vibration_enabled; 153 bool vibration_enabled;
154 154
155 bool motion_enabled;
155 std::string motion_device; 156 std::string motion_device;
156 std::string touch_device; 157 std::string touch_device;
157 TouchscreenInput touchscreen; 158 TouchscreenInput touchscreen;