Skip to content

Commit 93b7b9e

Browse files
committed
add setting (in ini) to disable multiseat
1 parent 1b5d5a7 commit 93b7b9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Managers/SettingsMan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ int SettingsMan::ReadProperty(const std::string_view& propName, Reader& reader)
189189
MatchProperty("VisibleAssemblyGroup", { m_VisibleAssemblyGroupsList.push_back(reader.ReadPropValue()); });
190190
MatchProperty("DisableMod", { m_DisabledMods.try_emplace(reader.ReadPropValue(), true); });
191191
MatchProperty("EnableGlobalScript", { m_EnabledGlobalScripts.try_emplace(reader.ReadPropValue(), true); });
192+
MatchProperty("ForceDisableMultimouse", { reader >> g_UInputMan.m_ForceDisableMultiMouseKeyboard; });
192193
MatchProperty("MouseSensitivity", { reader >> g_UInputMan.m_MouseSensitivity; });
193194
MatchForwards("Player1Scheme") MatchForwards("Player2Scheme") MatchForwards("Player3Scheme") MatchProperty("Player4Scheme", {
194195
for (int player = Players::PlayerOne; player < Players::MaxPlayerCount; player++) {
@@ -371,6 +372,7 @@ int SettingsMan::Save(Writer& writer) const {
371372
writer.NewDivider(false);
372373
writer.NewLineString("// Input Mapping", false);
373374
writer.NewLine(false);
375+
writer.NewPropertyWithValue("ForceDisableMultimouse", g_UInputMan.m_ForceDisableMultiMouseKeyboard);
374376
writer.NewPropertyWithValue("MouseSensitivity", g_UInputMan.m_MouseSensitivity);
375377

376378
writer.NewLine(false);

0 commit comments

Comments
 (0)