1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-20 14:41:34 +00:00

Fix scrolling with controller on gui

This commit is contained in:
Justin Ivany 2019-07-01 17:32:20 -03:00
parent bb72ed9744
commit 49f2615d2b

View file

@ -560,7 +560,7 @@ namespace MWInput
// game mode does not move the position of the GUI cursor // game mode does not move the position of the GUI cursor
float xmove = xAxis * dt * 1500.0f * mInvUiScalingFactor; float xmove = xAxis * dt * 1500.0f * mInvUiScalingFactor;
float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor; float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor;
if (xmove != 0|| ymove != 0) if (xmove != 0|| ymove != 0 || zAxis != 0)
{ {
mGuiCursorX += xmove; mGuiCursorX += xmove;
mGuiCursorY += ymove; mGuiCursorY += ymove;