|
|
|
@ -471,19 +471,19 @@ namespace MWInput
|
|
|
|
|
quickLoad();
|
|
|
|
|
break;
|
|
|
|
|
case A_CycleSpellLeft:
|
|
|
|
|
if (checkAllowedToUseItems())
|
|
|
|
|
if (checkAllowedToUseItems() && MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Magic))
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->cycleSpell(false);
|
|
|
|
|
break;
|
|
|
|
|
case A_CycleSpellRight:
|
|
|
|
|
if (checkAllowedToUseItems())
|
|
|
|
|
if (checkAllowedToUseItems() && MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Magic))
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->cycleSpell(true);
|
|
|
|
|
break;
|
|
|
|
|
case A_CycleWeaponLeft:
|
|
|
|
|
if (checkAllowedToUseItems())
|
|
|
|
|
if (checkAllowedToUseItems() && MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Inventory))
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->cycleWeapon(false);
|
|
|
|
|
break;
|
|
|
|
|
case A_CycleWeaponRight:
|
|
|
|
|
if (checkAllowedToUseItems())
|
|
|
|
|
if (checkAllowedToUseItems() && MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Inventory))
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->cycleWeapon(true);
|
|
|
|
|
break;
|
|
|
|
|
case A_Sneak:
|
|
|
|
@ -1312,6 +1312,9 @@ namespace MWInput
|
|
|
|
|
if (!checkAllowedToUseItems())
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate")!=-1)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->activateQuickKey (index);
|
|
|
|
|
}
|
|
|
|
|