mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[XAM] Added default value for controller vibration.
- Added notification broadcast while changing controller vibration state
This commit is contained in:
parent
7479ccc292
commit
7a2f53bf20
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue