[XAM] Added default value for controller vibration.

- Added notification broadcast while changing controller vibration state
This commit is contained in:
Gliniak 2025-03-30 21:05:02 +02:00
parent 7479ccc292
commit 7a2f53bf20
2 changed files with 8 additions and 1 deletions

View file

@ -1429,6 +1429,12 @@ void EmulatorWindow::ToggleControllerVibration() {
auto input_lock = input_sys->lock();
input_sys->ToggleVibration();
if (emulator_->kernel_state()) {
emulator_->kernel_state()->BroadcastNotification(
kXNotificationSystemProfileSettingChanged,
static_cast<uint32_t>(input_sys->GetConnectedSlots().count()));
}
}
}

View file

@ -18,7 +18,8 @@ namespace xe {
namespace kernel {
namespace xam {
const static std::array<UserSetting, 2> default_setting_values = {
const static std::array<UserSetting, 3> default_setting_values = {
UserSetting(UserSettingId::XPROFILE_OPTION_CONTROLLER_VIBRATION, 3),
UserSetting(
UserSettingId::XPROFILE_GAMER_TIER,
X_XAMACCOUNTINFO::AccountSubscriptionTier::kSubscriptionTierGold),