Skip to content

Commit

Permalink
Write remap-enabled setting to INI
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Feb 2, 2021
1 parent df3f896 commit 8f4187a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Xb2XInput/XboxController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,12 @@ void XboxController::VibrationEnabled(bool value)
SetSetting("EnableVibration", value ? "true" : "false", ini_key_);
}

void XboxController::RemapEnabled(bool value)
{
settings_.remap_enabled = value;
SetSetting("RemapEnable", value ? "true" : "false", ini_key_);
}

void XboxController::SaveDeadzones()
{
// WritePrivateProfile can only write strings, bleh
Expand Down
2 changes: 1 addition & 1 deletion Xb2XInput/XboxController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class XboxController
void VibrationEnabled(bool value);

bool RemapEnabled() { return settings_.remap_enabled; }
void RemapEnabled(bool value) { settings_.remap_enabled = value; }
void RemapEnabled(bool value);

const UserSettings& Settings() { return settings_; }

Expand Down

0 comments on commit 8f4187a

Please sign in to comment.