Skip to content

Commit 8f4187a

Browse files
committed
Write remap-enabled setting to INI
1 parent df3f896 commit 8f4187a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Xb2XInput/XboxController.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,12 @@ void XboxController::VibrationEnabled(bool value)
713713
SetSetting("EnableVibration", value ? "true" : "false", ini_key_);
714714
}
715715

716+
void XboxController::RemapEnabled(bool value)
717+
{
718+
settings_.remap_enabled = value;
719+
SetSetting("RemapEnable", value ? "true" : "false", ini_key_);
720+
}
721+
716722
void XboxController::SaveDeadzones()
717723
{
718724
// WritePrivateProfile can only write strings, bleh

Xb2XInput/XboxController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class XboxController
140140
void VibrationEnabled(bool value);
141141

142142
bool RemapEnabled() { return settings_.remap_enabled; }
143-
void RemapEnabled(bool value) { settings_.remap_enabled = value; }
143+
void RemapEnabled(bool value);
144144

145145
const UserSettings& Settings() { return settings_; }
146146

0 commit comments

Comments
 (0)