mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-14 15:00:18 -04:00
Update controller support for scroll window to use the keybaord for smoother scrolling
This commit is contained in:
parent
8ae193abe8
commit
6da6b9b98f
@ -143,10 +143,8 @@ namespace MWGui
|
|||||||
}
|
}
|
||||||
else if (arg.button == SDL_CONTROLLER_BUTTON_B)
|
else if (arg.button == SDL_CONTROLLER_BUTTON_B)
|
||||||
onCloseButtonClicked(mCloseButton);
|
onCloseButtonClicked(mCloseButton);
|
||||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_UP)
|
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_UP || arg.button == SDL_CONTROLLER_BUTTON_DPAD_DOWN)
|
||||||
onKeyButtonPressed(nullptr, MyGUI::KeyCode::ArrowUp, 0);
|
return false; // Fall through to keyboard
|
||||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_DOWN)
|
|
||||||
onKeyButtonPressed(nullptr, MyGUI::KeyCode::ArrowDown, 0);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user