VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #4594 from german77/MotionHID
bunnei9a2553c9520c
diff --cc src/core/hle/service/hid/controllers/npad.hindex e9788da8d0,7b07d2e8b0..78e7c320bc--- a/src/core/hle/service/hid/controllers/npad.h+++ b/src/core/hle/service/hid/controllers/npad.h@@@ -126,10 -124,10 +126,12 @@@ publicvoid UpdateControllerAt(NPadControllerType controller, std::size_t npad_index, bool connected);void DisconnectNPad(u32 npad_id);+ void DisconnectNPadAtIndex(std::size_t index);+void SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode drift_mode);GyroscopeZeroDriftMode GetGyroscopeZeroDriftMode() const;+ bool IsSixAxisSensorAtRest() const;+ void SetSixAxisEnabled(bool six_axis_status);LedPattern GetLedPattern(u32 npad_id);void SetVibrationEnabled(bool can_vibrate);bool IsVibrationEnabled() const;diff --cc src/yuzu/configuration/configure_input.cppindex 7ea17a4db3,1c54355d18..2725fcb2b2--- a/src/yuzu/configuration/configure_input.cpp+++ b/src/yuzu/configuration/configure_input.cpp@@@ -188,9 -180,11 +193,10 @@@ void ConfigureInput::RetranslateUI()void ConfigureInput::LoadConfiguration() {LoadPlayerControllerIndices();- UpdateDockedState(Settings::values.players[0].controller_type ==- Settings::ControllerType::Handheld);+ UpdateDockedState(Settings::values.players[8].connected);ui->vibrationGroup->setChecked(Settings::values.vibration_enabled);+ ui->motionGroup->setChecked(Settings::values.motion_enabled);}void ConfigureInput::LoadPlayerControllerIndices() {