mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-24 06:02:48 +00:00
Store Always Run control state in settings
This commit is contained in:
parent
d2dca27067
commit
a3752da79f
@ -117,7 +117,7 @@ namespace MWInput
|
|||||||
, mPreviewPOVDelay(0.f)
|
, mPreviewPOVDelay(0.f)
|
||||||
, mTimeIdle(0.f)
|
, mTimeIdle(0.f)
|
||||||
, mOverencumberedMessageDelay(0.f)
|
, mOverencumberedMessageDelay(0.f)
|
||||||
, mAlwaysRunActive(false)
|
, mAlwaysRunActive(Settings::Manager::getBool("always run", "Input"))
|
||||||
, mControlsDisabled(false)
|
, mControlsDisabled(false)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -819,6 +819,8 @@ namespace MWInput
|
|||||||
{
|
{
|
||||||
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
|
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
|
||||||
mAlwaysRunActive = !mAlwaysRunActive;
|
mAlwaysRunActive = !mAlwaysRunActive;
|
||||||
|
|
||||||
|
Settings::Manager::setBool("always run", "Input", mAlwaysRunActive);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputManager::resetIdleTime()
|
void InputManager::resetIdleTime()
|
||||||
|
@ -168,6 +168,8 @@ camera y multiplier = 1.0
|
|||||||
|
|
||||||
ui y multiplier = 1.0
|
ui y multiplier = 1.0
|
||||||
|
|
||||||
|
always run = false
|
||||||
|
|
||||||
[Game]
|
[Game]
|
||||||
# Always use the most powerful attack when striking with a weapon (chop, slash or thrust)
|
# Always use the most powerful attack when striking with a weapon (chop, slash or thrust)
|
||||||
best attack = false
|
best attack = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user