mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-15 17:16:43 +00:00
Make sure gamepad triggers can be bound (#8721)
This commit is contained in:
parent
98973426a4
commit
ae0886ae36
1 changed files with 6 additions and 0 deletions
|
@ -215,6 +215,12 @@ namespace MWInput
|
||||||
|
|
||||||
void ControllerManager::axisMoved(int deviceID, const SDL_ControllerAxisEvent& arg)
|
void ControllerManager::axisMoved(int deviceID, const SDL_ControllerAxisEvent& arg)
|
||||||
{
|
{
|
||||||
|
if (mBindingsManager->isDetectingBindingState())
|
||||||
|
{
|
||||||
|
mBindingsManager->controllerAxisMoved(deviceID, arg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Settings::input().mEnableController || MWBase::Environment::get().getInputManager()->controlsDisabled())
|
if (!Settings::input().mEnableController || MWBase::Environment::get().getInputManager()->controlsDisabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue